|
|
|
@ -23,13 +23,6 @@ define('admin/general/dashboard', ['semver'], function(semver) {
|
|
|
|
|
realtimeInterval: 1500
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
$(window).on('action:ajaxify.start', function(ev, data) {
|
|
|
|
|
clearInterval(intervals.rooms);
|
|
|
|
|
clearInterval(intervals.graphs);
|
|
|
|
@ -41,6 +34,12 @@ define('admin/general/dashboard', ['semver'], function(semver) {
|
|
|
|
|
usedTopicColors.length = 0;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
$.get('https://api.github.com/repos/NodeBB/NodeBB/tags', function(releases) {
|
|
|
|
|
// Re-sort the releases, as they do not follow Semver (wrt pre-releases)
|
|
|
|
|
releases = releases.sort(function(a, b) {
|
|
|
|
|