Set focus to first input when loading a template into dialog

This commit is contained in:
Nathan Gray 2014-12-03 22:11:24 +00:00
parent 681566471a
commit ae257d8c98

View File

@ -416,7 +416,10 @@ var et2_dialog = et2_widget.extend({
if(template.indexOf('.xet') > 0)
{
// 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
{