From 8c449cae82d57183919060c6d7e62a001d155b03 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 17 Jun 2013 14:44:55 +0000 Subject: [PATCH] Trigger a load event on the template container when the etemplate is fully loaded, so other (non-app) scripts can hook in with ease. The etemplate2 object will be the second parameter to the callback. --- etemplate/js/etemplate2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index 6635e3a4e4..aa0d93a080 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -251,6 +251,8 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback) { _callback.call(window,this); } + + $j(this.DOMContainer).trigger('load', this); }, this); // Split the given data into array manager objects and pass those to the