mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
WebUI: Implement removing categories
This commit is contained in:
parent
a4dca52617
commit
50f2437ac3
6 changed files with 35 additions and 1 deletions
|
@ -357,6 +357,18 @@ initializeWindows = function() {
|
|||
updateMainData();
|
||||
};
|
||||
|
||||
removeCategoryFN = function (categoryHash) {
|
||||
var categoryName = category_list[categoryHash].name;
|
||||
new Request({
|
||||
url: 'command/removeCategory',
|
||||
method: 'post',
|
||||
data: {
|
||||
category: categoryName
|
||||
}
|
||||
}).send();
|
||||
setCategoryFilter(CATEGORIES_ALL);
|
||||
};
|
||||
|
||||
['pauseAll', 'resumeAll'].each(function(item) {
|
||||
addClickEvent(item, function(e) {
|
||||
new Event(e).stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue