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
4718c9a5
Commit
4718c9a5
authored
Feb 08, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to define self when I moved code.
parent
950f5de3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
cms/static/js/views/settings/advanced_view.js
+2
-1
No files found.
cms/static/js/views/settings/advanced_view.js
View file @
4718c9a5
...
...
@@ -54,6 +54,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
},
afterRender
:
function
()
{
var
self
=
this
;
var
listEle$
=
this
.
$el
.
find
(
'.course-advanced-policy-list'
);
var
policyValueDivs
=
listEle$
.
find
(
'.ace'
);
_
.
each
(
policyValueDivs
,
...
...
@@ -67,7 +68,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
// TODO: error checking in case it does not parse!
var
quotedValue
=
editor
.
getValue
();
var
JSONValue
=
JSON
.
parse
(
quotedValue
);
self
.
model
.
set
(
key
,
JSONValue
,
{
validate
:
true
});
self
.
model
.
set
(
key
,
JSONValue
,
{
validate
:
true
});
});
// Calling getSession() directly in render causes a crash on Chrome.
...
...
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