mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
Stop taglist from stealing focus back if user clicks on another input
This commit is contained in:
parent
412b874629
commit
0787e03378
@ -279,7 +279,11 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
|||||||
.on("load", function() {jQuery('.loading',this.container).remove();})
|
.on("load", function() {jQuery('.loading',this.container).remove();})
|
||||||
// Keep focus when selecting from the list
|
// Keep focus when selecting from the list
|
||||||
.on("selectionchange", function() {
|
.on("selectionchange", function() {
|
||||||
jQuery('input',this.container).focus();
|
if(document.activeElement === document.body ||
|
||||||
|
widget.div.has(document.activeElement).length > 0)
|
||||||
|
{
|
||||||
|
jQuery('input',this.container).focus();
|
||||||
|
}
|
||||||
widget.resize();
|
widget.resize();
|
||||||
})
|
})
|
||||||
// Bind keyup so we can start ajax search when we like
|
// Bind keyup so we can start ajax search when we like
|
||||||
@ -345,7 +349,12 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
|||||||
});
|
});
|
||||||
jQuery('body').one('click',function() {
|
jQuery('body').one('click',function() {
|
||||||
taglist.collapse();
|
taglist.collapse();
|
||||||
taglist.input.focus();
|
|
||||||
|
if(document.activeElement === document.body ||
|
||||||
|
widget.div.has(document.activeElement).length > 0)
|
||||||
|
{
|
||||||
|
taglist.input.focus();
|
||||||
|
}
|
||||||
});},100
|
});},100
|
||||||
);
|
);
|
||||||
this.$taglist.one('collapse', function() {
|
this.$taglist.one('collapse', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user