no need for setTimeout in ajaxify

v1.18.x
psychobunny 10 years ago
parent 85e3cb9f0d
commit 5d7ce0011a

@ -135,7 +135,6 @@ $(document).ready(function() {
templates.parse(tpl_url, data, function(template) {
translator.translate(template, function(translatedTemplate) {
setTimeout(function() {
$('#content').html(translatedTemplate);
ajaxify.end(url, tpl_url);
@ -147,7 +146,6 @@ $(document).ready(function() {
$('#content, #footer').removeClass('ajaxifying');
app.refreshTitle(url);
}, animationDuration * 1000 - ((new Date()).getTime() - startTime));
});
});
}

Loading…
Cancel
Save