mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
closes #4327
This commit is contained in:
@@ -22,7 +22,17 @@ define('admin/general/dashboard', ['semver'], function(semver) {
|
||||
graphInterval: 15000,
|
||||
realtimeInterval: 1500
|
||||
};
|
||||
|
||||
$(window).on('action:ajaxify.start', function(ev, data) {
|
||||
clearInterval(intervals.rooms);
|
||||
clearInterval(intervals.graphs);
|
||||
|
||||
intervals.rooms = null;
|
||||
intervals.graphs = null;
|
||||
graphData.rooms = null;
|
||||
graphData.traffic = null;
|
||||
usedTopicColors.length = 0;
|
||||
});
|
||||
|
||||
Admin.init = function() {
|
||||
app.enterRoom('admin');
|
||||
@@ -30,17 +40,6 @@ define('admin/general/dashboard', ['semver'], function(semver) {
|
||||
|
||||
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);
|
||||
|
||||
intervals.rooms = null;
|
||||
intervals.graphs = null;
|
||||
graphData.rooms = null;
|
||||
graphData.traffic = null;
|
||||
usedTopicColors.length = 0;
|
||||
});
|
||||
|
||||
$.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) {
|
||||
|
||||
Reference in New Issue
Block a user