mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
moved event alert to serverside, now node controls the registration alert. added some transition animation to page changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user