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:
psychobunny
2013-05-09 03:33:53 +00:00
parent 8e1ee88878
commit f3f08a9c94
19 changed files with 521 additions and 14 deletions

View File

@@ -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);