1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

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
+8
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);
}
}
});
});