mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
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)
|
||||
{
|
||||
// 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
|
||||
jQuery('input',this.div).first().focus();
|
||||
},this));
|
||||
|
Loading…
Reference in New Issue
Block a user