mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user