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
1afe5561
Commit
1afe5561
authored
May 14, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2039 from edx/fix-course-updates
Fix "Course Updates" page
parents
26b149e7
e9a8f408
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
29 deletions
+36
-29
cms/static/js/views/checklists_view.js
+1
-0
cms/static/js/views/course_info_edit.js
+24
-19
cms/static/js/views/settings/advanced_view.js
+1
-0
cms/templates/course_info.html
+1
-1
cms/templates/settings.html
+9
-9
No files found.
cms/static/js/views/checklists_view.js
View file @
1afe5561
...
...
@@ -22,6 +22,7 @@ CMS.Views.Checklists = Backbone.View.extend({
}
);
},
reset
:
true
,
error
:
CMS
.
ServerError
}
);
...
...
cms/static/js/views/course_info_edit.js
View file @
1afe5561
...
...
@@ -160,11 +160,17 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
var
targetModel
=
this
.
eventModel
(
event
);
this
.
modelDom
(
event
).
remove
();
var
cacheThis
=
this
;
targetModel
.
destroy
({
success
:
function
(
model
,
response
)
{
cacheThis
.
collection
.
fetch
({
success
:
function
()
{
cacheThis
.
render
();},
error
:
CMS
.
ServerError
});
},
error
:
CMS
.
ServerError
targetModel
.
destroy
({
success
:
function
(
model
,
response
)
{
cacheThis
.
collection
.
fetch
({
success
:
function
()
{
cacheThis
.
render
();
},
reset
:
true
,
error
:
CMS
.
ServerError
});
},
error
:
CMS
.
ServerError
});
},
...
...
@@ -238,20 +244,19 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
initialize
:
function
()
{
var
self
=
this
;
this
.
model
.
fetch
(
{
complete
:
function
()
{
window
.
templateLoader
.
loadRemoteTemplate
(
"course_info_handouts"
,
"/static/client_templates/course_info_handouts.html"
,
function
(
raw_template
)
{
self
.
template
=
_
.
template
(
raw_template
);
self
.
render
();
}
);
},
error
:
CMS
.
ServerError
}
);
this
.
model
.
fetch
({
complete
:
function
()
{
window
.
templateLoader
.
loadRemoteTemplate
(
"course_info_handouts"
,
"/static/client_templates/course_info_handouts.html"
,
function
(
raw_template
)
{
self
.
template
=
_
.
template
(
raw_template
);
self
.
render
();
}
);
},
reset
:
true
,
error
:
CMS
.
ServerError
});
},
render
:
function
()
{
...
...
cms/static/js/views/settings/advanced_view.js
View file @
1afe5561
...
...
@@ -155,6 +155,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
self
.
model
.
clear
({
silent
:
true
});
self
.
model
.
fetch
({
success
:
function
()
{
self
.
render
();
},
reset
:
true
,
error
:
CMS
.
ServerError
});
},
...
...
cms/templates/course_info.html
View file @
1afe5561
...
...
@@ -21,7 +21,7 @@
$
(
document
).
ready
(
function
(){
var
course_updates
=
new
CMS
.
Models
.
CourseUpdateCollection
();
course_updates
.
urlbase
=
'${url_base}'
;
course_updates
.
fetch
();
course_updates
.
fetch
(
{
reset
:
true
}
);
var
course_handouts
=
new
CMS
.
Models
.
ModuleInfo
({
id
:
'${handouts_location}'
...
...
cms/templates/settings.html
View file @
1afe5561
...
...
@@ -32,15 +32,15 @@ from contentstore import utils
});
var
model
=
new
CMS
.
Models
.
Settings
.
CourseDetails
();
model
.
urlRoot
=
'${details_url}'
;
model
.
fetch
({
success
:
function
(
model
)
{
var
editor
=
new
CMS
.
Views
.
Settings
.
Details
({
el
:
$
(
'.settings-details'
),
model
:
model
});
editor
.
render
();
}
model
.
fetch
({
success
:
function
(
model
)
{
var
editor
=
new
CMS
.
Views
.
Settings
.
Details
({
el
:
$
(
'.settings-details'
),
model
:
model
});
editor
.
render
();
},
reset
:
true
});
});
...
...
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