mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Merge pull request #4538 from buinsky/WebUI_misc_fixes
WebUI: Miscellaneous fixes
This commit is contained in:
commit
a17ca5382d
3 changed files with 10 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
});
|
});
|
||||||
$('confirmBtn').addEvent('click', function(e){
|
$('confirmBtn').addEvent('click', function(e){
|
||||||
|
parent.torrentsTable.deselectAll();
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
var cmd = 'command/delete';
|
var cmd = 'command/delete';
|
||||||
if($('deleteFromDiskCB').get('checked'))
|
if($('deleteFromDiskCB').get('checked'))
|
||||||
|
|
|
@ -181,6 +181,8 @@ var ContextMenu = new Class({
|
||||||
show_f_l_piece_prio = false;
|
show_f_l_piece_prio = false;
|
||||||
|
|
||||||
if (all_are_downloaded) {
|
if (all_are_downloaded) {
|
||||||
|
this.hideItem('DownloadLimit');
|
||||||
|
this.menu.getElement('a[href$=UploadLimit]').parentNode.addClass('separator');
|
||||||
this.hideItem('SequentialDownload');
|
this.hideItem('SequentialDownload');
|
||||||
this.hideItem('FirstLastPiecePrio');
|
this.hideItem('FirstLastPiecePrio');
|
||||||
this.showItem('SuperSeeding');
|
this.showItem('SuperSeeding');
|
||||||
|
@ -204,6 +206,8 @@ var ContextMenu = new Class({
|
||||||
this.setItemChecked('SequentialDownload', all_are_seq_dl);
|
this.setItemChecked('SequentialDownload', all_are_seq_dl);
|
||||||
this.setItemChecked('FirstLastPiecePrio', all_are_f_l_piece_prio);
|
this.setItemChecked('FirstLastPiecePrio', all_are_f_l_piece_prio);
|
||||||
|
|
||||||
|
this.showItem('DownloadLimit');
|
||||||
|
this.menu.getElement('a[href$=UploadLimit]').parentNode.removeClass('separator');
|
||||||
this.hideItem('SuperSeeding');
|
this.hideItem('SuperSeeding');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,10 @@ var DynamicTable = new Class({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
deselectAll : function () {
|
||||||
|
this.cur.empty();
|
||||||
|
},
|
||||||
|
|
||||||
selectRow : function (rowId) {
|
selectRow : function (rowId) {
|
||||||
this.cur.empty();
|
this.cur.empty();
|
||||||
this.cur.push(rowId);
|
this.cur.push(rowId);
|
||||||
|
@ -423,7 +427,7 @@ var DynamicTable = new Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
selectedRowsIds : function () {
|
selectedRowsIds : function () {
|
||||||
return this.cur;
|
return this.cur.slice();
|
||||||
},
|
},
|
||||||
|
|
||||||
getRowIds : function () {
|
getRowIds : function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue