Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5e2dba6b
Commit
5e2dba6b
authored
Nov 27, 2012
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cache to pull talbott's changes
parent
8a27e177
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
cms/static/js/views/settings/main_settings_view.js
+6
-0
cms/templates/settings.html
+0
-14
No files found.
cms/static/js/views/settings/main_settings_view.js
View file @
5e2dba6b
...
...
@@ -20,6 +20,12 @@ CMS.Views.Settings.Main = Backbone.View.extend({
this
.
$el
.
find
(
"#course-name"
).
val
(
this
.
model
.
get
(
'courseLocation'
).
get
(
'name'
));
this
.
$el
.
find
(
"#course-organization"
).
val
(
this
.
model
.
get
(
'courseLocation'
).
get
(
'org'
));
this
.
$el
.
find
(
"#course-number"
).
val
(
this
.
model
.
get
(
'courseLocation'
).
get
(
'course'
));
this
.
$el
.
find
(
'.set-date'
).
datepicker
({
'dateFormat'
:
'm/d/yy'
});
this
.
$el
.
find
(
":input, textarea"
).
focus
(
function
()
{
$
(
"label[for='"
+
this
.
id
+
"']"
).
addClass
(
"is-focused"
);
}).
blur
(
function
()
{
$
(
"label"
).
removeClass
(
"is-focused"
);
});
this
.
render
();
},
...
...
cms/templates/settings.html
View file @
5e2dba6b
...
...
@@ -33,13 +33,6 @@ from contentstore import utils
model
:
settingsModel
});
$
(
'.set-date'
).
datepicker
({
'dateFormat'
:
'm/d/yy'
});
$
(
":input, textarea"
).
focus
(
function
()
{
$
(
"label[for='"
+
this
.
id
+
"']"
).
addClass
(
"is-focused"
);
}).
blur
(
function
()
{
$
(
"label"
).
removeClass
(
"is-focused"
);
});
editor
.
render
();
});
...
...
@@ -52,13 +45,6 @@ from contentstore import utils
var
gradeThresholds
;
var
GRADES
=
[
'A'
,
'B'
,
'C'
,
'D'
,
'F'
];
// FIXME move into view class
$
(
" :input, textarea"
).
focus
(
function
()
{
$
(
"label[for='"
+
this
.
id
+
"']"
).
addClass
(
"is-focused"
);
}).
blur
(
function
()
{
$
(
"label"
).
removeClass
(
"is-focused"
);
});
(
function
()
{
$body
=
$
(
'body'
);
$gradeBar
=
$
(
'.grade-bar'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment