mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
started working on threadss, implemented slug url, fixed crashing bug during post creation
This commit is contained in:
@@ -25,27 +25,20 @@ var ajaxify = {};
|
||||
var tpl_url = (url === '') ? 'home' : url;
|
||||
|
||||
if (templates[tpl_url]) {
|
||||
if (current_state === null || current_state != url) {
|
||||
current_state = url;
|
||||
window.history.pushState({}, url, "/" + url);
|
||||
|
||||
window.history.pushState({}, url, "/" + url);
|
||||
jQuery('#content, #footer').fadeOut(100);
|
||||
|
||||
load_template(function() {
|
||||
exec_body_scripts(content);
|
||||
|
||||
jQuery('#content, #footer').fadeOut(150, function() {
|
||||
//content.innerHTML = templates[tpl_url];
|
||||
load_template(function() {
|
||||
exec_body_scripts(content);
|
||||
|
||||
ajaxify.enable();
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
jQuery('#content, #footer').fadeIn(200);
|
||||
});
|
||||
|
||||
});
|
||||
ajaxify.enable();
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
}
|
||||
jQuery('#content, #footer').fadeIn(200);
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user