forked from extern/egroupware
If one application uses a template from another, notify the application that loaded the template, not just the application that owns it.
This commit is contained in:
parent
370577e763
commit
08708664b3
@ -421,6 +421,12 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
{
|
||||
app_callback.call(window,this,_name);
|
||||
}
|
||||
if(appname != this.app && typeof window.app[this.app] == "object")
|
||||
{
|
||||
// Loaded a template from a different application?
|
||||
// Let the application that loaded it know too
|
||||
window.app[this.app].et2_ready(this, this.name);
|
||||
}
|
||||
|
||||
$j(this.DOMContainer).trigger('load', this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user