mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
WebUI: Change torrent model
Improvements: - added functions, which may be used to reorder and hiding columns in torrents table - new columns can be easily added to torrents table
This commit is contained in:
parent
91ec84b317
commit
04f1c0c238
6 changed files with 593 additions and 341 deletions
|
@ -139,22 +139,22 @@ var ContextMenu = new Class({
|
|||
|
||||
var h = myTable.selectedIds();
|
||||
h.each(function(item, index){
|
||||
tr = myTable.rows.get(item);
|
||||
var data = myTable.rows.get(item).full_data;
|
||||
|
||||
if (tr.getAttribute('seq_dl') != 'true')
|
||||
if (data['seq_dl'] != true)
|
||||
all_are_seq_dl = false;
|
||||
else
|
||||
there_are_seq_dl = true;
|
||||
|
||||
if (tr.getAttribute('f_l_piece_prio') != 'true')
|
||||
if (data['f_l_piece_prio'] != true)
|
||||
all_are_f_l_piece_prio = false;
|
||||
else
|
||||
there_are_f_l_piece_prio = true;
|
||||
|
||||
if (tr.getAttribute('downloaded') != 'true')
|
||||
if (data['progress'] != 1.0) // not downloaded
|
||||
all_are_downloaded = false;
|
||||
|
||||
state = tr.getAttribute('state');
|
||||
state = data['state'];
|
||||
if ((state != 'pausedUP') && (state != 'pausedDL'))
|
||||
all_are_paused = false;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue