From 45efa72585a71345195106ff1923bcf88604e4f3 Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Sat, 14 Jul 2012 21:17:26 -0500 Subject: [PATCH] menus now close when clicking on canvas --- editor/svg-editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 4628d43..7ce67d7 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2101,7 +2101,6 @@ return false; } var closer = function(e){ - //Method of Action specific to detect when the iframe has focus if (top != self && !e.isTrigger) { if(typeof top.exports.setEditorFocus == 'function') { @@ -2113,10 +2112,14 @@ blinker(e); return; } + else { + $('#menu_bar').removeClass('active') + } if ($("#tools_shapelib").is(":visible") && !$(e.target).parents("#tools_shapelib_show, #tools_shapelib").length) $("#tools_shapelib").hide() if (e.target.nodeName.toLowerCase() != "input") $("input").blur(); } + }