mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Keep focus when selecting from the option list
This commit is contained in:
parent
d2e34a5812
commit
61b2957124
@ -208,7 +208,9 @@ var et2_taglist = et2_selectbox.extend(
|
|||||||
// Display / hide a loading icon while fetching
|
// Display / hide a loading icon while fetching
|
||||||
$j(this.taglist)
|
$j(this.taglist)
|
||||||
.on("beforeload", function() {this.container.prepend('<div class="ui-icon loading"/>');})
|
.on("beforeload", function() {this.container.prepend('<div class="ui-icon loading"/>');})
|
||||||
.on("load", function() {$j('.loading',this.container).remove();});
|
.on("load", function() {$j('.loading',this.container).remove();})
|
||||||
|
// Keep focus when selecting from the list
|
||||||
|
.on("selectionchange", function() { $j('input',this.container).focus();});
|
||||||
|
|
||||||
// Unbind change handler of widget's ancestor to stop it from bubbling
|
// Unbind change handler of widget's ancestor to stop it from bubbling
|
||||||
// taglist has its own onchange
|
// taglist has its own onchange
|
||||||
|
Loading…
Reference in New Issue
Block a user