removed derpy + from header ill come back to that later when im more inspired... fixed ajaxify for custom routed urls, fixed recent/popular/active tab's invalid object initializer

This commit is contained in:
psychobunny
2013-05-08 17:28:22 +00:00
parent baecab84de
commit 8e1ee88878
4 changed files with 8 additions and 6 deletions

View File

@@ -31,9 +31,12 @@ var ajaxify = {};
app.enter_room('global');
var url = url.replace(/\/$/, "");
tpl_url = templates.get_custom_map(tpl_url);
var tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
var tpl_url = templates.get_custom_map(url);
if (tpl_url == false) {
tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
}
if (templates[tpl_url]) {
window.history.pushState({}, url, "/" + url);