mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
WebUI: Add empty context menu to categories filter
This commit is contained in:
parent
d30a799b45
commit
a939fca4ac
6 changed files with 39 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue