testing transition speed change without waiting for widgets to render

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

@ -97,6 +97,15 @@ var ajaxify = ajaxify || {};
setTimeout(function() {
$('#content').html(translatedTemplate);
ajaxify.widgets.render(tpl_url, url, function() {
$(window).trigger('action:ajaxify.end', {url: url});
});
ajaxify.variables.parse();
$(window).trigger('action:ajaxify.contentLoaded', {url: url});
ajaxify.loadScript(tpl_url);
if (typeof callback === 'function') {
callback();
}
@ -107,14 +116,6 @@ var ajaxify = ajaxify || {};
ajaxify.initialLoad = false;
app.refreshTitle(url);
$(window).trigger('action:ajaxify.end', {url: url});
});
ajaxify.variables.parse();
$(window).trigger('action:ajaxify.contentLoaded', {url: url});
ajaxify.loadScript(tpl_url);
}, animationDuration * 1000 - ((new Date()).getTime() - startTime))
});

Loading…
Cancel
Save