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
37299224
Commit
37299224
authored
Jul 25, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed course_info_handouts AJAX load
parent
5b9e2835
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
cms/static/js/views/course_info_edit.js
+2
-7
cms/templates/course_info.html
+1
-2
cms/templates/js/course_info_handouts.underscore
+0
-0
No files found.
cms/static/js/views/course_info_edit.js
View file @
37299224
...
@@ -232,16 +232,11 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
...
@@ -232,16 +232,11 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
},
},
initialize
:
function
()
{
initialize
:
function
()
{
this
.
template
=
_
.
template
(
$
(
"#course_info_handouts-tpl"
).
text
());
var
self
=
this
;
var
self
=
this
;
this
.
model
.
fetch
({
this
.
model
.
fetch
({
complete
:
function
()
{
complete
:
function
()
{
window
.
templateLoader
.
loadRemoteTemplate
(
"course_info_handouts"
,
self
.
render
();
"/static/client_templates/course_info_handouts.html"
,
function
(
raw_template
)
{
self
.
template
=
_
.
template
(
raw_template
);
self
.
render
();
}
);
},
},
reset
:
true
reset
:
true
});
});
...
...
cms/templates/course_info.html
View file @
37299224
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<
%
block
name=
"bodyclass"
>
is-signedin course course-info updates
</
%
block>
<
%
block
name=
"bodyclass"
>
is-signedin course course-info updates
</
%
block>
<
%
block
name=
"header_extras"
>
<
%
block
name=
"header_extras"
>
% for template_name in ["course_info_update"]:
% for template_name in ["course_info_update"
, "course_info_handouts"
]:
<script
type=
"text/template"
id=
"${template_name}-tpl"
>
<script
type=
"text/template"
id=
"${template_name}-tpl"
>
<%
static
:
include
path
=
"js/${template_name}.underscore"
/>
<%
static
:
include
path
=
"js/${template_name}.underscore"
/>
</script>
</script>
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
</
%
block>
</
%
block>
<
%
block
name=
"jsextra"
>
<
%
block
name=
"jsextra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/template_loader.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/course_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/module_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/models/module_info.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/course_info_edit.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/views/course_info_edit.js')}"
></script>
...
...
cms/
static/client_templates/course_info_handouts.html
→
cms/
templates/js/course_info_handouts.underscore
View file @
37299224
File moved
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