mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
sugar kills (removed sugar.js)
Relative dates for next airing on posters and list (series) History time shows real time on tooltip
This commit is contained in:
parent
641e01376b
commit
207d9c256d
21 changed files with 296 additions and 9100 deletions
|
@ -2,16 +2,17 @@
|
|||
define(
|
||||
[
|
||||
'backbone',
|
||||
'moment',
|
||||
'Series/SeriesModel'
|
||||
], function (Backbone, SeriesModel) {
|
||||
], function (Backbone, Moment, SeriesModel) {
|
||||
return Backbone.Model.extend({
|
||||
|
||||
initialize: function () {
|
||||
if (this.has('series')) {
|
||||
var start = Date.create(this.get('airDate'));
|
||||
var start = Moment(this.get('airDate'));
|
||||
var runtime = this.get('series').get('runtime');
|
||||
|
||||
this.set('end', start.addMinutes(runtime));
|
||||
this.set('end', start.add('minutes', runtime));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue