1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-18 23:48:35 +02:00
Sonarr/NzbDrone.Web/_backboneApp/Shared/ErrorModel.js
2013-02-15 16:52:34 -08:00

24 lines
412 B
JavaScript

/// <reference path="../app.js" />
NzbDrone.Shared.ErrorCollection = Backbone.Collection.extend({
model: NzbDrone.Shared.ErrorModel,
});
NzbDrone.Shared.ErrorModel = Backbone.Model.extend({
mutators: {
pre: function () {
return this.get('message').lines().lenght > 1;
}
},
defaults: {
"title": "NO_TITLE",
"message": "NO_MESSAGE",
}
});