moved event alert to serverside, now node controls the registration alert. added some transition animation to page changes

This commit is contained in:
psychobunny
2013-04-23 20:17:12 +00:00
parent 67bf1b6041
commit a06b3519a1
4 changed files with 25 additions and 14 deletions

View File

@@ -18,13 +18,19 @@ var ajaxify = {};
current_state = url;
window.history.pushState({}, url, "/" + url);
content.innerHTML = templates[tpl_url];
exec_body_scripts(content);
jQuery('#content').fadeOut(100, function() {
content.innerHTML = templates[tpl_url];
exec_body_scripts(content);
ajaxify.enable();
if (callback) {
callback();
}
ajaxify.enable();
if (callback) {
callback();
}
jQuery('#content').fadeIn(200);
});
}
return true;
@@ -42,6 +48,7 @@ var ajaxify = {};
if (ajaxify.go(url)) {
ev.preventDefault();
return false;
}
}