From 47a390511b551f4aba5320fad8835621a187536f Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 14 Jan 2010 13:39:25 +0000 Subject: [PATCH] Made menu stay open on drag-onto-fileopen in Firefox git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1215 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 3d463082..a5bb433a 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -737,6 +737,7 @@ function svg_edit_setup() { var on_button = false; var height = 0; var js_hover = true; + var set_click = false; var hideMenu = function() { list.fadeOut(200); @@ -749,8 +750,11 @@ function svg_edit_setup() { // for its change event to fire if (evt.target.localName != "input") { list.fadeOut(200); - } else { - list.css('margin-left','-9999px').show(); + } else if(!set_click) { + set_click = true; + $(evt.target).click(function() { + list.css('margin-left','-9999px').show(); + }); } } on_button = false;