mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
WebUI: Prevent default action of links
This prevents anchors from being added to the URL.
This commit is contained in:
parent
2023ec043c
commit
76999b598c
2 changed files with 7 additions and 6 deletions
|
@ -114,6 +114,7 @@ var ContextMenu = new Class({
|
|||
/* menu items */
|
||||
this.menu.getElements('a').each(function(item) {
|
||||
item.addEvent('click', function(e) {
|
||||
e.preventDefault();
|
||||
if (!item.hasClass('disabled')) {
|
||||
this.execute(item.get('href').split('#')[1], $(this.options.element));
|
||||
this.fireEvent('click', [item, e]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue