WebUI: Implement removing categories

This commit is contained in:
buinsky 2016-01-21 16:42:20 +03:00
parent a4dca52617
commit 50f2437ac3
6 changed files with 35 additions and 1 deletions

View file

@ -315,5 +315,12 @@ var TorrentsTableContextMenu = new Class({
});
var CategoriesFilterContextMenu = new Class({
Extends: ContextMenu
Extends: ContextMenu,
updateMenuItems: function () {
var id = this.options.element.id;
if (id != CATEGORIES_ALL && id != CATEGORIES_UNCATEGORIZED)
this.showItem('DeleteCategory');
else
this.hideItem('DeleteCategory');
}
});