mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
wait for widgets to render to send ajaxify end
possible fix for broken masonry on f5
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user