mirror of
https://github.com/Carve/qbittorrent-webui-cjratliff.com.git
synced 2025-02-28 23:50:57 +01:00
Merge pull request #56 from tothf/ratio-limit-block
Fix Ratio Limit column
This commit is contained in:
commit
35c7ea5f28
@ -1309,7 +1309,12 @@ window.qBittorrent.DynamicTable = (function() {
|
|||||||
this.columns['completed'].updateTd = this.columns['size'].updateTd;
|
this.columns['completed'].updateTd = this.columns['size'].updateTd;
|
||||||
|
|
||||||
// max_ratio
|
// max_ratio
|
||||||
this.columns['max_ratio'].updateTd = this.columns['ratio'].updateTd;
|
this.columns['max_ratio'].updateTd = function(td, row) {
|
||||||
|
const max_ratio = this.getRowValue(row);
|
||||||
|
const string = (max_ratio === -1) ? '∞' : window.qBittorrent.Misc.toFixedPointString(max_ratio, 2);
|
||||||
|
td.set('text', string);
|
||||||
|
td.set('title', string);
|
||||||
|
};
|
||||||
|
|
||||||
// seen_complete
|
// seen_complete
|
||||||
this.columns['seen_complete'].updateTd = this.columns['completion_on'].updateTd;
|
this.columns['seen_complete'].updateTd = this.columns['completion_on'].updateTd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user