1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-20 21:55:03 -04:00

SignalR for tasks, better handling of future/disabled jobs

This commit is contained in:
Mark McDowall
2014-09-12 17:04:02 -07:00
parent 80ed203258
commit 51b397a00c
6 changed files with 96 additions and 11 deletions
+8 -4
View File
@@ -13,11 +13,15 @@ define(
this.$el.empty();
var interval = this.model.get('interval');
var duration = moment.duration(interval, 'minutes').humanize();
var duration = moment.duration(interval, 'minutes').humanize().replace(/an?(?=\s)/, '1');
this.$el.html(
duration.replace(/an?(?=\s)/, '1')
);
if (interval === 0 ) {
this.$el.html('disabled');
}
else {
this.$el.html(duration);
}
return this;
}