mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
more fixes to ajaxify, updated /users blocks to sit flush to the left, started work on the ACP including basic templates, added a method to get active users in all rooms (socket connections), added more routes mostly pointing to admin, added a routing folder to start organizing routes better, starting with admin.
This commit is contained in:
@@ -34,9 +34,11 @@ var ajaxify = {};
|
||||
|
||||
var tpl_url = templates.get_custom_map(url);
|
||||
|
||||
if (tpl_url == false) {
|
||||
if (tpl_url == false && !templates[url]) {
|
||||
tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
|
||||
}
|
||||
} else if (templates[url]) {
|
||||
tpl_url = url;
|
||||
}
|
||||
|
||||
if (templates[tpl_url]) {
|
||||
window.history.pushState({}, url, "/" + url);
|
||||
|
||||
Reference in New Issue
Block a user