WebUI: Add empty context menu to categories filter

This commit is contained in:
buinsky 2016-01-20 22:57:42 +03:00
parent d30a799b45
commit a939fca4ac
6 changed files with 39 additions and 20 deletions

View file

@ -228,7 +228,9 @@ window.addEvent('load', function () {
var html = '<a href="#" onclick="setCategoryFilter(' + hash + ');return false;">' +
'<img src="theme/inode-directory"/>' +
escapeHtml(text) + ' (' + count + ')' + '</a>';
return new Element('li', {id: hash, html: html});
var el = new Element('li', {id: hash, html: html});
categoriesFilterContextMenu.addTarget(el);
return el;
};
var all = torrentsTable.getRowIds().length;