Browse Source

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

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
04e993c674
  1. 2
      src/webui/css/mootabs1.2.css
  2. 8
      src/webui/scripts/mocha-events.js

2
src/webui/css/mootabs1.2.css

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

8
src/webui/scripts/mocha-events.js

@ -55,7 +55,11 @@ function attachMochaLinkEvents(){ @@ -55,7 +55,11 @@ function attachMochaLinkEvents(){
addClickEvent('delete', function(e){
new Event(e).stop();
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(){ @@ -66,7 +70,11 @@ function attachMochaLinkEvents(){
['pause','resume'].each(function(item) {
addClickEvent(item, function(e){
new Event(e).stop();
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();

Loading…
Cancel
Save