Fix Bug 37308
This commit is contained in:
parent
0513a06df9
commit
c9cc95064d
|
@ -217,6 +217,8 @@ define([
|
||||||
|
|
||||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||||
if (!me.isModalShowed) {
|
if (!me.isModalShowed) {
|
||||||
|
if (/form-control/.test(e.target.className))
|
||||||
|
me.inFormControl = false;
|
||||||
if (!e.relatedTarget ||
|
if (!e.relatedTarget ||
|
||||||
!/area_id/.test(e.target.id) && ($(e.target).parent().find(e.relatedTarget).length<1 || e.target.localName == 'textarea') /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
!/area_id/.test(e.target.id) && ($(e.target).parent().find(e.relatedTarget).length<1 || e.target.localName == 'textarea') /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
||||||
&& (e.relatedTarget.localName != 'input' || !/form-control/.test(e.relatedTarget.className)) /* Check if focus goes to text input with class "form-control" */
|
&& (e.relatedTarget.localName != 'input' || !/form-control/.test(e.relatedTarget.className)) /* Check if focus goes to text input with class "form-control" */
|
||||||
|
@ -228,8 +230,6 @@ define([
|
||||||
me.dontCloseDummyComment = false;
|
me.dontCloseDummyComment = false;
|
||||||
else if (/chat-msg-text/.test(e.target.id))
|
else if (/chat-msg-text/.test(e.target.id))
|
||||||
me.dontCloseChat = false;
|
me.dontCloseChat = false;
|
||||||
else if (/form-control/.test(e.target.className))
|
|
||||||
me.inFormControl = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).on('dragover', function(e) {
|
}).on('dragover', function(e) {
|
||||||
|
|
|
@ -198,6 +198,8 @@ define([
|
||||||
|
|
||||||
$(document.body).on('blur', 'input, textarea', function(e) {
|
$(document.body).on('blur', 'input, textarea', function(e) {
|
||||||
if (!me.isModalShowed) {
|
if (!me.isModalShowed) {
|
||||||
|
if (/form-control/.test(e.target.className))
|
||||||
|
me.inFormControl = false;
|
||||||
if (!e.relatedTarget ||
|
if (!e.relatedTarget ||
|
||||||
!/area_id/.test(e.target.id) && ($(e.target).parent().find(e.relatedTarget).length<1 || e.target.localName == 'textarea') /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
!/area_id/.test(e.target.id) && ($(e.target).parent().find(e.relatedTarget).length<1 || e.target.localName == 'textarea') /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
||||||
&& (e.relatedTarget.localName != 'input' || !/form-control/.test(e.relatedTarget.className)) /* Check if focus goes to text input with class "form-control" */
|
&& (e.relatedTarget.localName != 'input' || !/form-control/.test(e.relatedTarget.className)) /* Check if focus goes to text input with class "form-control" */
|
||||||
|
@ -209,8 +211,6 @@ define([
|
||||||
me.dontCloseDummyComment = false;
|
me.dontCloseDummyComment = false;
|
||||||
else if (/chat-msg-text/.test(e.target.id))
|
else if (/chat-msg-text/.test(e.target.id))
|
||||||
me.dontCloseChat = false;
|
me.dontCloseChat = false;
|
||||||
else if (/form-control/.test(e.target.className))
|
|
||||||
me.inFormControl = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).on('dragover', function(e) {
|
}).on('dragover', function(e) {
|
||||||
|
|
|
@ -206,6 +206,8 @@ define([
|
||||||
if (me.isAppDisabled === true || me.isFrameClosed) return;
|
if (me.isAppDisabled === true || me.isFrameClosed) return;
|
||||||
|
|
||||||
if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible())) {
|
if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible())) {
|
||||||
|
if (/form-control/.test(e.target.className))
|
||||||
|
me.inFormControl = false;
|
||||||
if (!e.relatedTarget ||
|
if (!e.relatedTarget ||
|
||||||
!/area_id/.test(e.target.id) && ($(e.target).parent().find(e.relatedTarget).length<1 || e.target.localName == 'textarea') /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
!/area_id/.test(e.target.id) && ($(e.target).parent().find(e.relatedTarget).length<1 || e.target.localName == 'textarea') /* Check if focus in combobox goes from input to it's menu button or menu items, or from comment editing area to Ok/Cancel button */
|
||||||
&& (e.relatedTarget.localName != 'input' || !/form-control/.test(e.relatedTarget.className)) /* Check if focus goes to text input with class "form-control" */
|
&& (e.relatedTarget.localName != 'input' || !/form-control/.test(e.relatedTarget.className)) /* Check if focus goes to text input with class "form-control" */
|
||||||
|
@ -217,8 +219,6 @@ define([
|
||||||
me.dontCloseDummyComment = false;
|
me.dontCloseDummyComment = false;
|
||||||
else if (/chat-msg-text/.test(e.target.id))
|
else if (/chat-msg-text/.test(e.target.id))
|
||||||
me.dontCloseChat = false;
|
me.dontCloseChat = false;
|
||||||
else if (/form-control/.test(e.target.className))
|
|
||||||
me.inFormControl = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).on('dragover', function(e) {
|
}).on('dragover', function(e) {
|
||||||
|
|
Loading…
Reference in a new issue