mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +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,
|
hash = window.location.hash,
|
||||||
$window = $(window);
|
$window = $(window);
|
||||||
|
|
||||||
ajaxify.widgets.render(tpl_url, url);
|
|
||||||
|
|
||||||
$window.trigger('action:ajaxify.start', {
|
$window.trigger('action:ajaxify.start', {
|
||||||
url: url
|
url: url
|
||||||
@@ -524,7 +523,6 @@ var socket,
|
|||||||
createHeaderTooltips();
|
createHeaderTooltips();
|
||||||
ajaxify.variables.parse();
|
ajaxify.variables.parse();
|
||||||
ajaxify.currentPage = url;
|
ajaxify.currentPage = url;
|
||||||
app.processPage();
|
|
||||||
|
|
||||||
if (window.history && window.history.replaceState) {
|
if (window.history && window.history.replaceState) {
|
||||||
window.history.replaceState({
|
window.history.replaceState({
|
||||||
@@ -533,8 +531,11 @@ var socket,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ajaxify.loadScript(tpl_url, function() {
|
ajaxify.loadScript(tpl_url, function() {
|
||||||
$window.trigger('action:ajaxify.end', {
|
ajaxify.widgets.render(tpl_url, url, function() {
|
||||||
url: url
|
app.processPage();
|
||||||
|
$window.trigger('action:ajaxify.end', {
|
||||||
|
url: url
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user