|
|
|
@ -828,12 +828,12 @@ const TorrentsTable = new Class({
@@ -828,12 +828,12 @@ const TorrentsTable = new Class({
|
|
|
|
|
this.newColumn('max_ratio', '', 'QBT_TR(Ratio Limit)QBT_TR[CONTEXT=TransferListModel]', 100, false); |
|
|
|
|
this.newColumn('seen_complete', '', 'QBT_TR(Last Seen Complete)QBT_TR[CONTEXT=TransferListModel]', 100, false); |
|
|
|
|
this.newColumn('last_activity', '', 'QBT_TR(Last Activity)QBT_TR[CONTEXT=TransferListModel]', 100, false); |
|
|
|
|
this.newColumn('availability', '', 'QBT_TR(Availability)QBT_TR[CONTEXT=TransferListModel]', 100, false); |
|
|
|
|
|
|
|
|
|
this.columns['state_icon'].onclick = ''; |
|
|
|
|
this.columns['state_icon'].dataProperties[0] = 'state'; |
|
|
|
|
|
|
|
|
|
this.columns['num_seeds'].dataProperties.push('num_complete'); |
|
|
|
|
|
|
|
|
|
this.columns['num_leechs'].dataProperties.push('num_incomplete'); |
|
|
|
|
|
|
|
|
|
this.initColumnsFunctions(); |
|
|
|
@ -1092,13 +1092,9 @@ const TorrentsTable = new Class({
@@ -1092,13 +1092,9 @@ const TorrentsTable = new Class({
|
|
|
|
|
// ratio
|
|
|
|
|
this.columns['ratio'].updateTd = function(td, row) { |
|
|
|
|
const ratio = this.getRowValue(row); |
|
|
|
|
let html = null; |
|
|
|
|
if (ratio == -1) |
|
|
|
|
html = '∞'; |
|
|
|
|
else |
|
|
|
|
html = (Math.floor(100 * ratio) / 100).toFixed(2); //Don't round up
|
|
|
|
|
td.set('html', html); |
|
|
|
|
td.set('title', html); |
|
|
|
|
const string = (ratio === -1) ? '∞' : toFixedPointString(ratio, 2); |
|
|
|
|
td.set('html', string); |
|
|
|
|
td.set('title', string); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// tags
|
|
|
|
@ -1181,6 +1177,13 @@ const TorrentsTable = new Class({
@@ -1181,6 +1177,13 @@ const TorrentsTable = new Class({
|
|
|
|
|
td.set('html', time); |
|
|
|
|
td.set('title', time); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// availability
|
|
|
|
|
this.columns['availability'].updateTd = function(td, row) { |
|
|
|
|
const value = toFixedPointString(this.getRowValue(row), 3); |
|
|
|
|
td.set('html', value); |
|
|
|
|
td.set('title', value); |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
applyFilter: function(row, filterName, categoryHash, tagHash, filterTerms) { |
|
|
|
|