mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
cleaned up all the cells. there is a cell for pretty much everything.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
define(['app'], function (app) {
|
||||
define(['app','Series/SeriesModel', 'Series/EpisodeModel'], function () {
|
||||
NzbDrone.History.Model = Backbone.Model.extend({
|
||||
mutators: {
|
||||
seasonNumber: function () {
|
||||
@@ -9,6 +9,14 @@ define(['app'], function (app) {
|
||||
paddedEpisodeNumber: function () {
|
||||
return this.get('episode').episodeNumber.pad(2);
|
||||
}
|
||||
},
|
||||
|
||||
parse: function (model) {
|
||||
model.series = new NzbDrone.Series.SeriesModel(model.series);
|
||||
model.episode = new NzbDrone.Series.EpisodeModel(model.episode);
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user