mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Add sequential downloading menu items
This commit is contained in:
parent
6644791458
commit
2a712a81ea
12 changed files with 149 additions and 21 deletions
|
@ -102,11 +102,13 @@ var dynamicTable = new Class({
|
|||
this.priority_hidden = false;
|
||||
},
|
||||
|
||||
insertRow : function (id, row, data, status, pos) {
|
||||
insertRow : function (id, row, data, attrs, pos) {
|
||||
if (this.rows.has(id)) {
|
||||
return;
|
||||
}
|
||||
var tr = new Element('tr');
|
||||
for (var a in attrs)
|
||||
tr.set(a, attrs[a]);
|
||||
tr.addClass("menu-target");
|
||||
this.rows.set(id, tr);
|
||||
for (var i = 0; i < row.length; i++) {
|
||||
|
@ -246,12 +248,14 @@ var dynamicTable = new Class({
|
|||
}, this);
|
||||
},
|
||||
|
||||
updateRow : function (id, row, data, status, newpos) {
|
||||
updateRow : function (id, row, data, attrs, newpos) {
|
||||
if (!this.rows.has(id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var tr = this.rows.get(id);
|
||||
for (var a in attrs)
|
||||
tr.set(a, attrs[a]);
|
||||
var tds = tr.getElements('td');
|
||||
for (var i = 0; i < row.length; i++) {
|
||||
if (i == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue