mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
- merge from stable branches (WebUI fixes)
This commit is contained in:
parent
75290cf715
commit
86024c6c74
19 changed files with 64 additions and 540 deletions
|
@ -57,7 +57,7 @@ function attachMochaLinkEvents(){
|
|||
new Event(e).stop();
|
||||
var h = myTable.selectedId();
|
||||
if(h && confirm('Are you sure you want to delete the selected item in download list?'))
|
||||
new Ajax('/command/delete', {method: 'post', data: {hash: h}}).request();
|
||||
new Request({url: '/command/delete', method: 'post', data: {hash: h}}).send();
|
||||
});
|
||||
|
||||
['pause','resume'].each(function(item) {
|
||||
|
@ -65,13 +65,13 @@ function attachMochaLinkEvents(){
|
|||
new Event(e).stop();
|
||||
var h = myTable.selectedId();
|
||||
if(h){
|
||||
new Ajax('/command/'+item, {method: 'post', data: {hash: h}}).request();
|
||||
new Request({url: '/command/'+item, method: 'post', data: {hash: h}}).send();
|
||||
}
|
||||
});
|
||||
|
||||
addClickEvent(item+'All', function(e){
|
||||
new Event(e).stop();
|
||||
new Ajax('/command/'+item+'all').request();
|
||||
new Request({url: '/command/'+item+'all'}).send();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue