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

rjs -> webpack

This commit is contained in:
Keivan Beigi
2015-02-02 17:18:45 -08:00
parent 344f3d66ef
commit 428a1439e5
399 changed files with 11591 additions and 16139 deletions
+17 -28
View File
@@ -1,29 +1,18 @@
'use strict';
define(
[
'Cells/NzbDroneCell',
'moment'
], function (NzbDroneCell, moment) {
return NzbDroneCell.extend({
var NzbDroneCell = require('../../Cells/NzbDroneCell');
var moment = require('moment');
className: 'task-interval-cell',
render: function () {
this.$el.empty();
var interval = this.model.get('interval');
var duration = moment.duration(interval, 'minutes').humanize().replace(/an?(?=\s)/, '1');
if (interval === 0 ) {
this.$el.html('disabled');
}
else {
this.$el.html(duration);
}
return this;
}
});
});
module.exports = NzbDroneCell.extend({
className : 'task-interval-cell',
render : function(){
this.$el.empty();
var interval = this.model.get('interval');
var duration = moment.duration(interval, 'minutes').humanize().replace(/an?(?=\s)/, '1');
if(interval === 0) {
this.$el.html('disabled');
}
else {
this.$el.html(duration);
}
return this;
}
});