diff --git a/cms/static/coffee/src/client_templates/course_info_update.html b/cms/static/coffee/src/client_templates/course_info_update.html index 00f8ff02c8..a3faae1bec 100644 --- a/cms/static/coffee/src/client_templates/course_info_update.html +++ b/cms/static/coffee/src/client_templates/course_info_update.html @@ -4,9 +4,7 @@
-
- -
+
diff --git a/cms/static/js/template_loader.js b/cms/static/js/template_loader.js index bd8d249e6b..b266575b7a 100644 --- a/cms/static/js/template_loader.js +++ b/cms/static/js/template_loader.js @@ -5,7 +5,7 @@ if (typeof window.templateLoader == 'function') return; var templateLoader = { - templateVersion: "0.0.4", + templateVersion: "0.0.3", templates: {}, loadRemoteTemplate: function(templateName, filename, callback) { if (!this.templates[templateName]) { diff --git a/cms/static/js/views/course_info_edit.js b/cms/static/js/views/course_info_edit.js index 1efd4db026..b57fac9abe 100644 --- a/cms/static/js/views/course_info_edit.js +++ b/cms/static/js/views/course_info_edit.js @@ -53,6 +53,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({ $(updateEle).append(newEle); }); this.$el.find(".new-update-form").hide(); + this.$el.find('.date').datepicker({ 'dateFormat': 'MM d' }); return this; }, @@ -64,7 +65,14 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({ var newForm = this.template({ updateModel : newModel }); var updateEle = this.$el.find("#course-update-list"); $(updateEle).prepend(newForm); - $(newForm).find(".new-update-form").show(); + + + // TODO: remove the id on the datepicker field + // this is causing conflicts with the datepicker widget + + + $('.date').datepicker('destroy'); + $('.date').datepicker({ 'dateFormat': 'MM d' }); }, onSave: function(event) {