widgets refactor

render widgets server side
widgets can use all the data the template can use
This commit is contained in:
Baris Usakli
2017-07-07 15:33:16 -04:00
parent 121a629de6
commit 9e94edb5aa
10 changed files with 132 additions and 129 deletions

View File

@@ -204,7 +204,7 @@ $(document).ready(function () {
}
ajaxify.loadScript(tpl_url, done);
ajaxify.widgets.render(tpl_url, url, done);
ajaxify.widgets.render(tpl_url, done);
$(window).trigger('action:ajaxify.contentLoaded', { url: url, tpl: tpl_url });