- Allow to delete permanently from WebUI

This commit is contained in:
Christophe Dumez
2008-12-28 21:12:49 +00:00
parent 028041f874
commit 1544300616
5 changed files with 25 additions and 4 deletions

View File

@@ -68,6 +68,20 @@ initializeWindows = function(){
}
});
addClickEvent('deletePerm', 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 from hard drive the selected item in download list?')) {
h.each(function(item, index){
new Request({url: '/command/deletePerm', method: 'post', data: {hash: item}}).send();
});
}
});
['pause','resume'].each(function(item) {
addClickEvent(item, function(e){
new Event(e).stop();