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
79e48dde
Commit
79e48dde
authored
Dec 10, 2012
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move the underscore tempaltes to /static/client-templates and update the references
parent
457b4aa6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
4 deletions
+4
-4
cms/static/client_templates/course_info_handouts.html
+0
-0
cms/static/client_templates/course_info_update.html
+0
-0
cms/static/client_templates/load_templates.html
+0
-0
cms/static/js/template_loader.js
+1
-1
cms/static/js/views/course_info_edit.js
+2
-2
common/djangoapps/util/json_request.py
+1
-1
No files found.
cms/static/c
offee/src/c
lient_templates/course_info_handouts.html
→
cms/static/client_templates/course_info_handouts.html
View file @
79e48dde
File moved
cms/static/c
offee/src/c
lient_templates/course_info_update.html
→
cms/static/client_templates/course_info_update.html
View file @
79e48dde
File moved
cms/static/c
offee/src/c
lient_templates/load_templates.html
→
cms/static/client_templates/load_templates.html
View file @
79e48dde
File moved
cms/static/js/template_loader.js
View file @
79e48dde
...
...
@@ -5,7 +5,7 @@
if
(
typeof
window
.
templateLoader
==
'function'
)
return
;
var
templateLoader
=
{
templateVersion
:
"0.0.
6
"
,
templateVersion
:
"0.0.
8
"
,
templates
:
{},
loadRemoteTemplate
:
function
(
templateName
,
filename
,
callback
)
{
if
(
!
this
.
templates
[
templateName
])
{
...
...
cms/static/js/views/course_info_edit.js
View file @
79e48dde
...
...
@@ -38,7 +38,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
// instantiates an editor template for each update in the collection
window
.
templateLoader
.
loadRemoteTemplate
(
"course_info_update"
,
// TODO Where should the template reside? how to use the static.url to create the path?
"/static/c
offee/src/c
lient_templates/course_info_update.html"
,
"/static/client_templates/course_info_update.html"
,
function
(
raw_template
)
{
self
.
template
=
_
.
template
(
raw_template
);
self
.
render
();
...
...
@@ -209,7 +209,7 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
{
complete
:
function
()
{
window
.
templateLoader
.
loadRemoteTemplate
(
"course_info_handouts"
,
"/static/c
offee/src/c
lient_templates/course_info_handouts.html"
,
"/static/client_templates/course_info_handouts.html"
,
function
(
raw_template
)
{
self
.
template
=
_
.
template
(
raw_template
);
self
.
render
();
...
...
common/djangoapps/util/json_request.py
View file @
79e48dde
...
...
@@ -8,7 +8,7 @@ def expect_json(view_function):
def
expect_json_with_cloned_request
(
request
,
*
args
,
**
kwargs
):
# cdodge: fix postback errors in CMS. The POST 'content-type' header can include additional information
# e.g. 'charset', so we can't do a direct string compare
if
request
.
META
[
'CONTENT_TYPE'
]
.
lower
()
.
startswith
(
"application/json"
):
if
request
.
META
.
get
(
'CONTENT_TYPE'
,
''
)
.
lower
()
.
startswith
(
"application/json"
):
cloned_request
=
copy
.
copy
(
request
)
cloned_request
.
POST
=
cloned_request
.
POST
.
copy
()
cloned_request
.
POST
.
update
(
json
.
loads
(
request
.
body
))
...
...
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