|
|
@ -385,6 +385,22 @@ initializeWindows = function() { |
|
|
|
setCategoryFilter(CATEGORIES_ALL); |
|
|
|
setCategoryFilter(CATEGORIES_ALL); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
startTorrentsByCategoryFN = function (categoryHash) { |
|
|
|
|
|
|
|
var h = torrentsTable.getFilteredTorrentsHashes('all', categoryHash); |
|
|
|
|
|
|
|
if (h.length) { |
|
|
|
|
|
|
|
h.each(function (hash, index) { |
|
|
|
|
|
|
|
new Request({ |
|
|
|
|
|
|
|
url: 'command/resume', |
|
|
|
|
|
|
|
method: 'post', |
|
|
|
|
|
|
|
data: { |
|
|
|
|
|
|
|
hash: hash |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).send(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
updateMainData(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
['pauseAll', 'resumeAll'].each(function(item) { |
|
|
|
['pauseAll', 'resumeAll'].each(function(item) { |
|
|
|
addClickEvent(item, function(e) { |
|
|
|
addClickEvent(item, function(e) { |
|
|
|
new Event(e).stop(); |
|
|
|
new Event(e).stop(); |
|
|
|