Minor cache to pull talbott's changes

This commit is contained in:
Don Mitchell
2012-11-27 13:22:44 -05:00
parent 8a27e1776b
commit 5e2dba6bad
2 changed files with 6 additions and 14 deletions

View File

@@ -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();
},

View File

@@ -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');