1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-30 11:46:09 +00:00
Sonarr/UI/History/Model.js

15 lines
384 B
JavaScript
Raw Normal View History

2013-05-03 06:53:32 +00:00
"use strict";
define(['app'], function (app) {
NzbDrone.History.Model = Backbone.Model.extend({
2013-05-10 22:33:04 +00:00
mutators: {
seasonNumber: function () {
return this.get('episode').seasonNumber;
},
2013-05-03 06:53:32 +00:00
2013-05-10 22:33:04 +00:00
paddedEpisodeNumber: function () {
return this.get('episode').episodeNumber.pad(2);
}
}
2013-05-03 06:53:32 +00:00
});
});