added global script/ajax error handling.

This commit is contained in:
kay.one 2013-01-26 13:07:34 -08:00
parent 4cca5d21b1
commit b393c11b27
10 changed files with 109 additions and 17 deletions

View file

@ -0,0 +1,16 @@
/// <reference path="../app.js" />
NzbDrone.Shared.ErrorCollection = Backbone.Collection.extend({
model: NzbDrone.Shared.ErrorModel,
});
NzbDrone.Shared.ErrorModel = Backbone.Model.extend({
defaults: {
"title": "NO_TITLE",
"message": "NO_MESSAGE",
}
});