admin stuff, removed deprecated install templates, blah blah

This commit is contained in:
Julian Lam
2014-01-10 13:27:50 -05:00
parent c5d8a5a6b2
commit ea8aa3fff2
14 changed files with 69 additions and 696 deletions

View File

@@ -3,7 +3,9 @@ define(function() {
Admin.init = function() {
ajaxify.register_events(['api:get_all_rooms']);
socket.on('api:get_all_rooms', function(data) {
app.enterRoom('admin');
socket.emit('api:meta.rooms.getAll', function(data) {
var active_users = document.getElementById('active_users'),
total = 0;
@@ -20,9 +22,6 @@ define(function() {
document.getElementById('connections').innerHTML = total;
});
app.enterRoom('admin');
socket.emit('api:get_all_rooms');
$('#logout-link').on('click', function() {
$.post(RELATIVE_PATH + '/logout', {
_csrf: $('#csrf_token').val()