From 5f46ac2b01fd08b8bcc0ebe38eb6503c2ff87a81 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 15 Jan 2012 18:24:18 +0000 Subject: [PATCH] Temporary fix that was breaking clicks inside of embedded pads --- static/js/ace2_inner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/ace2_inner.js b/static/js/ace2_inner.js index 15c6deba..a75f7ae6 100644 --- a/static/js/ace2_inner.js +++ b/static/js/ace2_inner.js @@ -3488,7 +3488,9 @@ function OUTER(gscope) function handleClick(evt) { //hide the dropdowns - window.top.padeditbar.toogleDropDown("none"); + 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() {