From 8d764cad33b7f8be7b5883b965c95d4dcbce6ffa Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 26 Feb 2012 13:07:09 +0000 Subject: [PATCH] Perma fix for issue #485 and #327 --- static/js/ace2_inner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/ace2_inner.js b/static/js/ace2_inner.js index c03ac8d46..2418b3843 100644 --- a/static/js/ace2_inner.js +++ b/static/js/ace2_inner.js @@ -3305,9 +3305,9 @@ 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"); + //hide the dropdownso + if(window.parent.parent.padeditbar){ // required in case its in an iframe should probably use parent.. See Issue 327 https://github.com/Pita/etherpad-lite/issues/327 + window.parent.parent.padeditbar.toogleDropDown("none"); } }