mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Allow template attribute to be the ID of a known template, not just a separate file
This commit is contained in:
parent
9b84be6d01
commit
45303ecb15
@ -405,7 +405,16 @@ var et2_dialog = et2_widget.extend({
|
||||
}
|
||||
|
||||
this.template = new etemplate2(this.div[0], false);
|
||||
this.template.load("",template,this.options.value||{});
|
||||
if(template.indexOf('.xet') > 0)
|
||||
{
|
||||
// File name provided, fetch from server
|
||||
this.template.load("",template,this.options.value||{});
|
||||
}
|
||||
else
|
||||
{
|
||||
// Just template name, it better be loaded already
|
||||
this.template.load(template,'',this.options.value||{});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user