got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls

This commit is contained in:
psychobunny
2013-05-01 21:26:47 +00:00
parent 6471109a25
commit b2bc967e9b
7 changed files with 31 additions and 24 deletions

View File

@@ -22,8 +22,8 @@ var ajaxify = {};
ajaxify.go = function(url, callback) {
var url = url.replace(/\/$/, "");
var tpl_url = (url === '') ? 'home' : url;
var tpl_url = (url === '') ? 'home' : url.split('/')[0];
if (templates[tpl_url]) {
window.history.pushState({}, url, "/" + url);