From 9e9f5607b9ab307a103019bbfaf20196af15409f Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Tue, 20 Feb 2018 18:14:01 -0500 Subject: [PATCH] cleanup firefox fix --- js/moto-ui.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/js/moto-ui.js b/js/moto-ui.js index 1ee380d4..880d8cc2 100644 --- a/js/moto-ui.js +++ b/js/moto-ui.js @@ -195,19 +195,9 @@ var gs_moto_ui = exports; btn.appendChild(DOC.createTextNode("edit")); btn.onclick = function(ev) { btn.parentNode.appendChild(box); - btn.parentNode.onclick = function(ev) { - ev.stopPropagation(); - if (ev.target === txt) return; - var showing = pop === lastPop; - hidePop(); - if (!showing) { - pop.style.display = "flex"; - lastPop = pop; - txt.focus(); - } - }; - + btn.parentNode.onclick = btn.onclick; ev.stopPropagation(); + // drop clicks on TextArea if (ev.target === txt) return; var showing = pop === lastPop; hidePop();