cleanup firefox fix
This commit is contained in:
parent
6d40421992
commit
9e9f5607b9
1 changed files with 2 additions and 12 deletions
|
|
@ -195,19 +195,9 @@ var gs_moto_ui = exports;
|
||||||
btn.appendChild(DOC.createTextNode("edit"));
|
btn.appendChild(DOC.createTextNode("edit"));
|
||||||
btn.onclick = function(ev) {
|
btn.onclick = function(ev) {
|
||||||
btn.parentNode.appendChild(box);
|
btn.parentNode.appendChild(box);
|
||||||
btn.parentNode.onclick = function(ev) {
|
btn.parentNode.onclick = btn.onclick;
|
||||||
ev.stopPropagation();
|
|
||||||
if (ev.target === txt) return;
|
|
||||||
var showing = pop === lastPop;
|
|
||||||
hidePop();
|
|
||||||
if (!showing) {
|
|
||||||
pop.style.display = "flex";
|
|
||||||
lastPop = pop;
|
|
||||||
txt.focus();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
// drop clicks on TextArea
|
||||||
if (ev.target === txt) return;
|
if (ev.target === txt) return;
|
||||||
var showing = pop === lastPop;
|
var showing = pop === lastPop;
|
||||||
hidePop();
|
hidePop();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue