From df03b042d60d24ef6655ff8e6092bbde9a53e009 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 6 Dec 2009 14:48:16 +0000 Subject: [PATCH] - Hide context menu when a torrent is clicked --- src/webui/scripts/contextmenu.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 */