sonarr-repo-only/NzbDrone.Web/_backboneApp/AddSeries/SearchResultModel.js

10 lines
277 B
JavaScript

/// <reference path="../app.js" />
NzbDrone.AddSeries.SearchResultModel = Backbone.Model.extend({
mutators: {
seriesYear: function () {
var date = Date.utc.create(this.get('firstAired'));
return date.format('{yyyy}');
}
}
});