From fc077257d01f0ecf14401906bf5557611537f723 Mon Sep 17 00:00:00 2001 From: buinsky Date: Sat, 23 Jan 2016 12:14:05 +0300 Subject: [PATCH] WebUI: Don't show several context menus at the same time --- src/webui/www/public/scripts/contextmenu.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webui/www/public/scripts/contextmenu.js b/src/webui/www/public/scripts/contextmenu.js index 432483e00..c8f83483e 100644 --- a/src/webui/www/public/scripts/contextmenu.js +++ b/src/webui/www/public/scripts/contextmenu.js @@ -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; },