mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-08 15:36:38 +00:00
23 lines
412 B
JavaScript
23 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",
|
|
}
|
|
});
|