FIxed jshint issue

This commit is contained in:
Mark McDowall 2014-08-01 18:14:20 -07:00
parent c21ffcb5e4
commit 64bbba90b0
2 changed files with 4 additions and 5 deletions

View File

@ -10,11 +10,10 @@ define(
'System/StatusModel', 'System/StatusModel',
'History/Queue/QueueCollection', 'History/Queue/QueueCollection',
'Config', 'Config',
'Shared/FormatHelpers',
'Mixins/backbone.signalr.mixin', 'Mixins/backbone.signalr.mixin',
'fullcalendar', 'fullcalendar',
'jquery.easypiechart' 'jquery.easypiechart'
], function ($, vent, Marionette, moment, CalendarCollection, StatusModel, QueueCollection, Config, FormatHelpers) { ], function ($, vent, Marionette, moment, CalendarCollection, StatusModel, QueueCollection, Config) {
return Marionette.ItemView.extend({ return Marionette.ItemView.extend({
storageKey: 'calendar.view', storageKey: 'calendar.view',
@ -171,7 +170,7 @@ define(
return undefined; return undefined;
} }
return new moment(pending.get('estimatedCompletionTime')).fromNow(); return moment(pending.get('estimatedCompletionTime')).fromNow();
}, },
_getReleaseTitle: function (element) { _getReleaseTitle: function (element) {

View File

@ -5,7 +5,7 @@ define(
'Cells/NzbDroneCell', 'Cells/NzbDroneCell',
'filesize', 'filesize',
'moment' 'moment'
], function (NzbDroneCell, fileSize, Moment) { ], function (NzbDroneCell, fileSize, moment) {
return NzbDroneCell.extend({ return NzbDroneCell.extend({
className: 'timeleft-cell', className: 'timeleft-cell',
@ -18,7 +18,7 @@ define(
//If the release is pending we want to use the timeleft as the time it will be processed at //If the release is pending we want to use the timeleft as the time it will be processed at
if (this.cellValue.get('status').toLowerCase() === 'pending') { if (this.cellValue.get('status').toLowerCase() === 'pending') {
this.$el.html('-'); this.$el.html('-');
this.$el.attr('title', 'Will be processed {0}'.format(new Moment(this.cellValue.get('estimatedCompletionTime')).calendar())); this.$el.attr('title', 'Will be processed {0}'.format(moment(this.cellValue.get('estimatedCompletionTime')).calendar()));
this.$el.attr('data-container', 'body'); this.$el.attr('data-container', 'body');
return this; return this;