Minor cache to pull talbott's changes
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user