|
|
@ -1,11 +1,11 @@ |
|
|
|
/* ----------------------------------------------------------------- |
|
|
|
/* ----------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
ATTACH MOCHA LINK EVENTS |
|
|
|
ATTACH MOCHA LINK EVENTS |
|
|
|
Notes: Here is where you define your windows and the events that open them. |
|
|
|
Notes: Here is where you define your windows and the events that open them. |
|
|
|
If you are not using links to run Mocha methods you can remove this function. |
|
|
|
If you are not using links to run Mocha methods you can remove this function. |
|
|
|
|
|
|
|
|
|
|
|
If you need to add link events to links within windows you are creating, do |
|
|
|
If you need to add link events to links within windows you are creating, do |
|
|
|
it in the onContentLoaded function of the new window. |
|
|
|
it in the onContentLoaded function of the new window. |
|
|
|
|
|
|
|
|
|
|
|
----------------------------------------------------------------- */ |
|
|
|
----------------------------------------------------------------- */ |
|
|
|
/* Define localStorage object for older browsers */ |
|
|
|
/* Define localStorage object for older browsers */ |
|
|
@ -164,10 +164,10 @@ initializeWindows = function() { |
|
|
|
deleteFN = function() { |
|
|
|
deleteFN = function() { |
|
|
|
var h = myTable.selectedIds(); |
|
|
|
var h = myTable.selectedIds(); |
|
|
|
/*if(h.length && confirm('_(Are you sure you want to delete the selected torrents from the transfer list?)')) { |
|
|
|
/*if(h.length && confirm('_(Are you sure you want to delete the selected torrents from the transfer list?)')) { |
|
|
|
h.each(function(item, index){ |
|
|
|
h.each(function(item, index){ |
|
|
|
new Request({url: 'command/delete', method: 'post', data: {hash: item}}).send(); |
|
|
|
new Request({url: 'command/delete', method: 'post', data: {hash: item}}).send(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}*/ |
|
|
|
}*/ |
|
|
|
if (h.length) { |
|
|
|
if (h.length) { |
|
|
|
new MochaUI.Window({ |
|
|
|
new MochaUI.Window({ |
|
|
|
id: 'confirmDeletionPage', |
|
|
|
id: 'confirmDeletionPage', |
|
|
|