Widgets refactor (#5817)

* widgets refactor

render widgets server side
widgets can use all the data the template can use

* fix tests
This commit is contained in:
Barış Soner Uşaklı
2017-07-10 12:54:45 -04:00
committed by GitHub
parent 65329b9bd7
commit 923bd86662
10 changed files with 135 additions and 130 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 });