Commit 1085d628 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Баг с открытием меню автофигур (закрывалось подменю).

parent 2840a7fe
...@@ -150,15 +150,18 @@ define([ ...@@ -150,15 +150,18 @@ define([
// NOTE: fix double click mozilla copy-paste // NOTE: fix double click mozilla copy-paste
if (e && e.target && e.target.id && (e.target.id === 'clipboard-helper-text' || e.target.id === 'area_id')) { if (e && e.target && (e.target.id === 'clipboard-helper-text')) {
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
return; return;
} }
if (this.isAppDisabled === true) return; if (this.isAppDisabled === true) return;
me.api.asc_enableKeyEvents(false);
if (/msg-reply/.test(e.target.className)) if (e && e.target && !/area_id/.test(e.target.id)) {
me.dontCloseDummyComment = true; me.api.asc_enableKeyEvents(false);
if (/msg-reply/.test(e.target.className))
me.dontCloseDummyComment = true;
}
}); });
$("#editor_sdk").focus(function (e) { $("#editor_sdk").focus(function (e) {
...@@ -169,7 +172,7 @@ define([ ...@@ -169,7 +172,7 @@ define([
$(document.body).on('blur', 'input, textarea', function(e) { $(document.body).on('blur', 'input, textarea', function(e) {
if (this.isAppDisabled === true) return; if (this.isAppDisabled === true) return;
if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible())) { if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible()) && !/area_id/.test(e.target.id)) {
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
if (/msg-reply/.test(e.target.className)) if (/msg-reply/.test(e.target.className))
me.dontCloseDummyComment = false; me.dontCloseDummyComment = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment