move updateRoomUsage to after graph setup #5346

v1.18.x
psychobunny 8 years ago
parent 7f9381b087
commit 65cf2dbe55

@ -37,7 +37,6 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s
Admin.init = function () {
app.enterRoom('admin');
socket.emit('admin.rooms.getAll', Admin.updateRoomUsage);
isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
@ -299,6 +298,7 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s
updateTrafficGraph($(this).attr('data-units'), until);
});
socket.emit('admin.rooms.getAll', Admin.updateRoomUsage);
initiateDashboard();
});
}

Loading…
Cancel
Save