wait for widgets to render to send ajaxify end

possible fix for broken masonry on f5
v1.18.x
barisusakli 11 years ago
parent 633980ce4b
commit d999116541

@ -498,7 +498,6 @@ var socket,
hash = window.location.hash,
$window = $(window);
ajaxify.widgets.render(tpl_url, url);
$window.trigger('action:ajaxify.start', {
url: url
@ -524,7 +523,6 @@ var socket,
createHeaderTooltips();
ajaxify.variables.parse();
ajaxify.currentPage = url;
app.processPage();
if (window.history && window.history.replaceState) {
window.history.replaceState({
@ -533,8 +531,11 @@ var socket,
}
ajaxify.loadScript(tpl_url, function() {
$window.trigger('action:ajaxify.end', {
url: url
ajaxify.widgets.render(tpl_url, url, function() {
app.processPage();
$window.trigger('action:ajaxify.end', {
url: url
});
});
});
});

Loading…
Cancel
Save