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({
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-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();
},
......
......@@ -33,13 +33,6 @@ from contentstore import utils
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();
});
......@@ -52,13 +45,6 @@ from contentstore import utils
var gradeThresholds;
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() {
$body = $('body');
$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