testing transition speed change without waiting for widgets to render

v1.18.x
psychobunny 11 years ago
parent 310dbc754e
commit 67c5477fb2

@ -97,16 +97,6 @@ var ajaxify = ajaxify || {};
setTimeout(function() {
$('#content').html(translatedTemplate);
ajaxify.widgets.render(tpl_url, url, function() {
if (typeof callback === 'function') {
callback();
}
app.processPage();
$('#content, #footer').removeClass('ajaxifying');
ajaxify.initialLoad = false;
app.refreshTitle(url);
$(window).trigger('action:ajaxify.end', {url: url});
});
@ -115,6 +105,17 @@ var ajaxify = ajaxify || {};
$(window).trigger('action:ajaxify.contentLoaded', {url: url});
ajaxify.loadScript(tpl_url);
if (typeof callback === 'function') {
callback();
}
app.processPage();
$('#content, #footer').removeClass('ajaxifying');
ajaxify.initialLoad = false;
app.refreshTitle(url);
}, animationDuration * 1000 - ((new Date()).getTime() - startTime))
});

Loading…
Cancel
Save