added template mapping, did users->account

This commit is contained in:
psychobunny
2013-05-07 16:12:26 +00:00
parent c80d178a57
commit 5153aa7652
3 changed files with 18 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ var ajaxify = {};
var url = url.replace(/\/$/, "");
var tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
tpl_url = templates.get_custom_map(tpl_url);
if (templates[tpl_url]) {
window.history.pushState({}, url, "/" + url);