|
|
@ -18,13 +18,19 @@ var ajaxify = {};
|
|
|
|
current_state = url;
|
|
|
|
current_state = url;
|
|
|
|
|
|
|
|
|
|
|
|
window.history.pushState({}, url, "/" + 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];
|
|
|
|
ajaxify.enable();
|
|
|
|
exec_body_scripts(content);
|
|
|
|
if (callback) {
|
|
|
|
|
|
|
|
callback();
|
|
|
|
ajaxify.enable();
|
|
|
|
}
|
|
|
|
if (callback) {
|
|
|
|
|
|
|
|
callback();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jQuery('#content').fadeIn(200);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -42,6 +48,7 @@ var ajaxify = {};
|
|
|
|
|
|
|
|
|
|
|
|
if (ajaxify.go(url)) {
|
|
|
|
if (ajaxify.go(url)) {
|
|
|
|
ev.preventDefault();
|
|
|
|
ev.preventDefault();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|