1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

- Fixed pause/resume/delete actions on seeding list (Web UI)

This commit is contained in:
Christophe Dumez 2008-09-27 20:10:10 +00:00
parent c3132fc1b0
commit 04e993c674
2 changed files with 11 additions and 3 deletions

View File

@ -18,7 +18,7 @@
}
.mootabs_title li.active {
background-color: #e6e6e6;
background-color: #f1f1f1;
}
.mootabs_panel {

View File

@ -55,7 +55,11 @@ function attachMochaLinkEvents(){
addClickEvent('delete', function(e){
new Event(e).stop();
var h = myTable.selectedIds();
if($("Tab1").hasClass('active')) {
var h = myTable.selectedIds();
} else {
var h = myTableUP.selectedIds();
}
if(h.length && confirm('Are you sure you want to delete the selected item in download list?')) {
h.each(function(item, index){
new Request({url: '/command/delete', method: 'post', data: {hash: item}}).send();
@ -66,7 +70,11 @@ function attachMochaLinkEvents(){
['pause','resume'].each(function(item) {
addClickEvent(item, function(e){
new Event(e).stop();
var h = myTable.selectedIds();
if($("Tab1").hasClass('active')) {
var h = myTable.selectedIds();
} else {
var h = myTableUP.selectedIds();
}
if(h.length){
h.each(function(hash, index){
new Request({url: '/command/'+item, method: 'post', data: {hash: hash}}).send();