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:
Nathan Gray 2014-11-18 23:10:41 +00:00
parent 370577e763
commit 08708664b3

View File

@ -421,6 +421,12 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
{ {
app_callback.call(window,this,_name); 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); $j(this.DOMContainer).trigger('load', this);