mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-16 19:08:27 +01:00
Set focus to first input when loading a template into dialog
This commit is contained in:
parent
675985f267
commit
42468d40a7
@ -416,7 +416,10 @@ var et2_dialog = et2_widget.extend({
|
|||||||
if(template.indexOf('.xet') > 0)
|
if(template.indexOf('.xet') > 0)
|
||||||
{
|
{
|
||||||
// File name provided, fetch from server
|
// File name provided, fetch from server
|
||||||
this.template.load("",template,this.options.value||{});
|
this.template.load("",template,this.options.value||{}, jQuery.proxy(function() {
|
||||||
|
// Set focus to the first input
|
||||||
|
$j('input',this.div).first().focus();
|
||||||
|
},this));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user