mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Trigger a load event when the template is loaded, to make it easier to work with the template when it is loaded from the server
This commit is contained in:
parent
49f9935b60
commit
3cfbcc8cf1
@ -164,6 +164,16 @@ var et2_template = et2_DOMWidget.extend(
|
||||
getDOMNode: function() {
|
||||
return this.div;
|
||||
},
|
||||
|
||||
/**
|
||||
* Override to trigger a load event, to facilitate processing when the xml file
|
||||
* is loaded asyncronously
|
||||
*/
|
||||
doLoadingFinished: function() {
|
||||
this._super.apply(this, arguments);
|
||||
$j(this.getDOMNode()).trigger('load');
|
||||
return true;
|
||||
}
|
||||
});
|
||||
et2_register_widget(et2_template, ["template"]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user