Look ma, history!

This commit is contained in:
Mark McDowall 2013-05-10 15:33:04 -07:00
parent 3602822572
commit d320c2b6a9
12 changed files with 62 additions and 56 deletions

View file

@ -1,6 +1,14 @@
"use strict";
define(['app'], function (app) {
NzbDrone.History.Model = Backbone.Model.extend({
mutators: {
seasonNumber: function () {
return this.get('episode').seasonNumber;
},
paddedEpisodeNumber: function () {
return this.get('episode').episodeNumber.pad(2);
}
}
});
});