mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 15:32:48 -07:00
Add save path and editing to WebUI new category dialog
This commit is contained in:
parent
a0e6007fc1
commit
63c53766b4
12 changed files with 197 additions and 71 deletions
|
@ -387,9 +387,13 @@ var CategoriesFilterContextMenu = new Class({
|
|||
Extends: ContextMenu,
|
||||
updateMenuItems: function() {
|
||||
var id = this.options.element.id;
|
||||
if (id != CATEGORIES_ALL && id != CATEGORIES_UNCATEGORIZED)
|
||||
if ((id != CATEGORIES_ALL) && (id != CATEGORIES_UNCATEGORIZED)) {
|
||||
this.showItem('EditCategory');
|
||||
this.showItem('DeleteCategory');
|
||||
else
|
||||
}
|
||||
else {
|
||||
this.hideItem('EditCategory');
|
||||
this.hideItem('DeleteCategory');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue