mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
cleaned up all the cells. there is a cell for pretty much everything.
This commit is contained in:
parent
ac3582d5c4
commit
70cfa5e685
42 changed files with 432 additions and 261 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue