From 372992244c8f68c37964fc7b3716bbb22739167f Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Thu, 25 Jul 2013 17:26:52 -0400 Subject: [PATCH] Removed course_info_handouts AJAX load --- cms/static/js/views/course_info_edit.js | 9 ++------- cms/templates/course_info.html | 3 +-- .../js/course_info_handouts.underscore} | 0 3 files changed, 3 insertions(+), 9 deletions(-) rename cms/{static/client_templates/course_info_handouts.html => templates/js/course_info_handouts.underscore} (100%) diff --git a/cms/static/js/views/course_info_edit.js b/cms/static/js/views/course_info_edit.js index ae0a66d45b..cb91422143 100644 --- a/cms/static/js/views/course_info_edit.js +++ b/cms/static/js/views/course_info_edit.js @@ -232,16 +232,11 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({ }, initialize: function() { + this.template = _.template($("#course_info_handouts-tpl").text()); 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(); - } - ); + self.render(); }, reset: true }); diff --git a/cms/templates/course_info.html b/cms/templates/course_info.html index eca3628b50..03f4c35d14 100644 --- a/cms/templates/course_info.html +++ b/cms/templates/course_info.html @@ -7,7 +7,7 @@ <%block name="bodyclass">is-signedin course course-info updates <%block name="header_extras"> -% for template_name in ["course_info_update"]: +% for template_name in ["course_info_update", "course_info_handouts"]: @@ -15,7 +15,6 @@ <%block name="jsextra"> - diff --git a/cms/static/client_templates/course_info_handouts.html b/cms/templates/js/course_info_handouts.underscore similarity index 100% rename from cms/static/client_templates/course_info_handouts.html rename to cms/templates/js/course_info_handouts.underscore