From 681e8415b6850dacca6dc87bcf7e72a28f2113c6 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 26 Feb 2012 12:38:52 +0000 Subject: [PATCH] Fix issue #485 --- static/js/ace2_inner.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/static/js/ace2_inner.js b/static/js/ace2_inner.js index ddc60f996..c03ac8d46 100644 --- a/static/js/ace2_inner.js +++ b/static/js/ace2_inner.js @@ -3272,11 +3272,6 @@ function Ace2Inner(){ function handleClick(evt) { - //hide the dropdowns - if(window.top.padeditbar){ // required in case its in an iframe should probably use parent.. See Issue 327 https://github.com/Pita/etherpad-lite/issues/327 - window.top.padeditbar.toogleDropDown("none"); - } - inCallStack("handleClick", function() { idleWorkTimer.atMost(200); @@ -3291,9 +3286,6 @@ function Ace2Inner(){ if ((!evt.ctrlKey) && (evt.button != 2) && (evt.button != 3)) { // find A tag with HREF - - - var n = evt.target; while (n && n.parentNode && !isLink(n)) { @@ -3313,6 +3305,10 @@ function Ace2Inner(){ evt.preventDefault(); } } + //hide the dropdowns + if(window.top.padeditbar){ // required in case its in an iframe should probably use parent.. See Issue 327 https://github.com/Pita/etherpad-lite/issues/327 + window.top.padeditbar.toogleDropDown("none"); + } } function doReturnKey()