mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Merge pull request #3027 from ngosang/fix_webui_all
Web UI: Fix resumeAll and pauseAll. Closes #3016
This commit is contained in:
commit
2c1d76c87f
@ -305,10 +305,21 @@ initializeWindows = function() {
|
||||
}
|
||||
}).send();
|
||||
});
|
||||
updateMainData();
|
||||
}
|
||||
};
|
||||
|
||||
['pauseAll', 'resumeAll', 'pause', 'resume', 'recheck'].each(function(item) {
|
||||
['pauseAll', 'resumeAll'].each(function(item) {
|
||||
addClickEvent(item, function(e) {
|
||||
new Event(e).stop();
|
||||
new Request({
|
||||
url: 'command/' + item
|
||||
}).send();
|
||||
updateMainData();
|
||||
});
|
||||
});
|
||||
|
||||
['pause', 'resume', 'recheck'].each(function(item) {
|
||||
addClickEvent(item, function(e) {
|
||||
new Event(e).stop();
|
||||
var h = myTable.selectedIds();
|
||||
@ -325,13 +336,6 @@ initializeWindows = function() {
|
||||
updateMainData();
|
||||
}
|
||||
});
|
||||
|
||||
addClickEvent(item + 'All', function(e) {
|
||||
new Event(e).stop();
|
||||
new Request({
|
||||
url: 'command/' + item + 'all'
|
||||
}).send();
|
||||
});
|
||||
});
|
||||
|
||||
['decreasePrio', 'increasePrio', 'topPrio', 'bottomPrio'].each(function(item) {
|
||||
|
Loading…
Reference in New Issue
Block a user