mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Moved source code under src folder - massive change
This commit is contained in:
parent
2fc8123d6b
commit
5bf0e197ec
1499 changed files with 1054 additions and 1444 deletions
27
src/UI/History/Queue/TimeleftCell.js
Normal file
27
src/UI/History/Queue/TimeleftCell.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'Cells/NzbDroneCell'
|
||||
], function (NzbDroneCell) {
|
||||
return NzbDroneCell.extend({
|
||||
|
||||
className: 'timeleft-cell',
|
||||
|
||||
render: function () {
|
||||
this.$el.empty();
|
||||
|
||||
if (this.cellValue) {
|
||||
|
||||
var timeleft = this.cellValue.get('timeleft');
|
||||
var size = this.cellValue.get('size');
|
||||
var sizeleft = this.cellValue.get('sizeleft');
|
||||
|
||||
this.$el.html(timeleft);
|
||||
this.$el.attr('title', '{0} MB / {1} MB'.format(sizeleft, size));
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue