1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Series/EpisodeModel.js

19 lines
439 B
JavaScript
Raw Normal View History

"use strict";
2013-03-04 01:42:26 +03:00
define(['app'], function () {
NzbDrone.Series.EpisodeModel = Backbone.Model.extend({
2013-03-02 22:13:23 +03:00
mutators: {
2013-05-01 03:25:33 +03:00
bestDateString : function () {
return bestDateString(this.get('airDate'));
},
paddedEpisodeNumber: function () {
return this.get('episodeNumber');
}
2013-03-02 22:13:23 +03:00
},
defaults: {
seasonNumber: 0
}
});
});