diff --git a/src/webui/scripts/contextmenu.js b/src/webui/scripts/contextmenu.js index 0b7aeebb4..41a3f08d7 100644 --- a/src/webui/scripts/contextmenu.js +++ b/src/webui/scripts/contextmenu.js @@ -56,6 +56,9 @@ var ContextMenu = new Class({ this.show(); } }.bind(this)); + t.addEvent('click',function(e) { + this.hide(); + }.bind(this)); }, //get things started @@ -81,6 +84,9 @@ var ContextMenu = new Class({ this.show(); } }.bind(this)); + el.addEvent('click',function(e) { + this.hide(); + }.bind(this)); },this); /* menu items */