mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-13 05:41:17 +00:00
WebUI: Don't show several context menus at the same time
This commit is contained in:
parent
d265d2e1a0
commit
fc077257d0
@ -1,3 +1,4 @@
|
||||
var lastShownContexMenu = null;
|
||||
var ContextMenu = new Class({
|
||||
//implements
|
||||
Implements: [Options, Events],
|
||||
@ -170,9 +171,12 @@ var ContextMenu = new Class({
|
||||
|
||||
//show menu
|
||||
show: function (trigger) {
|
||||
if (lastShownContexMenu && lastShownContexMenu != this)
|
||||
lastShownContexMenu.hide();
|
||||
this.fx.start(1);
|
||||
this.fireEvent('show');
|
||||
this.shown = true;
|
||||
lastShownContexMenu = this;
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user