Make sure that changing grading cutoffs triggers a save confirmation, and reliable reverting of changes.

This commit is contained in:
Peter Fogg
2013-06-28 10:42:40 -04:00
parent eba1bd0972
commit 3d4f9268da
4 changed files with 84 additions and 37 deletions

View File

@@ -92,6 +92,11 @@ CMS.Views.ValidatingView = Backbone.View.extend({
if(secondaryClick) {
secondaryClick();
}
self.model.clear({silent : true});
/*self.model.fetch({
success : function() { self.render(); },
reset: true
});*/
self.confirmation.hide();
self.notificationBarShowing = false;
}
@@ -111,7 +116,7 @@ CMS.Views.ValidatingView = Backbone.View.extend({
this.saved.show();
},
saveModel: function() {
saveView: function() {
var self = this;
this.model.save({},
{success: function() {