forked from extern/egroupware
Avoid an error in etemplate2 if content is not set
This commit is contained in:
parent
43b07dfb04
commit
9f8c5af937
@ -444,7 +444,7 @@ var et2_dialog = (function(){ "use strict"; return 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||{}, jQuery.proxy(function() {
|
this.template.load("",template,this.options.value||{content: {}}, jQuery.proxy(function() {
|
||||||
// Set focus to the first input
|
// Set focus to the first input
|
||||||
jQuery('input',this.div).first().focus();
|
jQuery('input',this.div).first().focus();
|
||||||
},this));
|
},this));
|
||||||
|
Loading…
Reference in New Issue
Block a user