Commit 5e2dba6b by Don Mitchell

Minor cache to pull talbott's changes

parent 8a27e177
...@@ -20,6 +20,12 @@ CMS.Views.Settings.Main = Backbone.View.extend({ ...@@ -20,6 +20,12 @@ CMS.Views.Settings.Main = Backbone.View.extend({
this.$el.find("#course-name").val(this.model.get('courseLocation').get('name')); this.$el.find("#course-name").val(this.model.get('courseLocation').get('name'));
this.$el.find("#course-organization").val(this.model.get('courseLocation').get('org')); this.$el.find("#course-organization").val(this.model.get('courseLocation').get('org'));
this.$el.find("#course-number").val(this.model.get('courseLocation').get('course')); this.$el.find("#course-number").val(this.model.get('courseLocation').get('course'));
this.$el.find('.set-date').datepicker({ 'dateFormat': 'm/d/yy' });
this.$el.find(":input, textarea").focus(function() {
$("label[for='" + this.id + "']").addClass("is-focused");
}).blur(function() {
$("label").removeClass("is-focused");
});
this.render(); this.render();
}, },
......
...@@ -33,13 +33,6 @@ from contentstore import utils ...@@ -33,13 +33,6 @@ from contentstore import utils
model : settingsModel model : settingsModel
}); });
$('.set-date').datepicker({ 'dateFormat': 'm/d/yy' });
$(":input, textarea").focus(function() {
$("label[for='" + this.id + "']").addClass("is-focused");
}).blur(function() {
$("label").removeClass("is-focused");
});
editor.render(); editor.render();
}); });
...@@ -52,13 +45,6 @@ from contentstore import utils ...@@ -52,13 +45,6 @@ from contentstore import utils
var gradeThresholds; var gradeThresholds;
var GRADES = ['A', 'B', 'C', 'D', 'F']; var GRADES = ['A', 'B', 'C', 'D', 'F'];
// FIXME move into view class
$(" :input, textarea").focus(function() {
$("label[for='" + this.id + "']").addClass("is-focused");
}).blur(function() {
$("label").removeClass("is-focused");
});
(function() { (function() {
$body = $('body'); $body = $('body');
$gradeBar = $('.grade-bar'); $gradeBar = $('.grade-bar');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment