Hook up notification framework to default AJAX error callback

And delete `CMS.ServerError`
This commit is contained in:
David Baumgold
2013-05-10 14:17:30 -04:00
parent e2f5acef46
commit c6c5e50d86
9 changed files with 42 additions and 54 deletions

View File

@@ -40,7 +40,6 @@ CMS.Models.Settings.Advanced = Backbone.Model.extend({
// data
data : JSON.stringify({ deleteKeys : self.deleteKeys})
})
.fail(function(hdr, status, error) { CMS.ServerError(self, "Deleting keys:" + status); })
.done(function(data, status, error) {
// clear deleteKeys on success
self.deleteKeys = [];