optimized widget call by bundling all queries into one for #1428; fixes active users widget crash

also fixes b3819fd076 properly
This commit is contained in:
psychobunny
2014-07-09 19:23:03 -04:00
parent 9fbd535b79
commit 5b6acbad1e
5 changed files with 19 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ var ajaxify = ajaxify || {};
templates.parse(tpl_url, data, function(template) {
translator.translate(template, function(translatedTemplate) {
$('#content').html(translatedTemplate);
ajaxify.widgets.render(tpl_url, function() {
ajaxify.widgets.render(tpl_url, url, function() {
if (typeof callback === 'function') {
callback();
}