v1.18.x
Barış Soner Uşaklı 9 years ago
parent 3f912e2c6a
commit bd6d44aeaa

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

Loading…
Cancel
Save