Commit fb573a1d by Peter Fogg

Hide "success" alert as soon as we start editing another field.

parent 3e376bd7
...@@ -21,7 +21,6 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ ...@@ -21,7 +21,6 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
} }
); );
this.listenTo(this.model, 'invalid', this.handleValidationError); this.listenTo(this.model, 'invalid', this.handleValidationError);
this.savedBar = undefined;
}, },
render: function() { render: function() {
// catch potential outside call before template loaded // catch potential outside call before template loaded
...@@ -122,10 +121,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ ...@@ -122,10 +121,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
confirm.hide(); confirm.hide();
self.notificationBarShowing = false; self.notificationBarShowing = false;
} }
}], }]
}}); }});
this.notificationBarShowing = true; this.notificationBarShowing = true;
confirm.show(); confirm.show();
if(this.saved) {
this.saved.hide();
}
}, },
saveView : function() { saveView : function() {
// TODO one last verification scan: // TODO one last verification scan:
...@@ -146,13 +148,6 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ ...@@ -146,13 +148,6 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
analytics.track('Saved Advanced Settings', { analytics.track('Saved Advanced Settings', {
'course': course_location_analytics 'course': course_location_analytics
}); });
},
error: function() {
// If we've already saved some data this will be
// shown; hide it away again.
if(self.saved) {
self.saved.hide();
}
} }
}); });
}, },
......
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