mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 11:42:10 +02:00
closes #5904
This commit is contained in:
@@ -47,13 +47,10 @@ define('admin/manage/ip-blacklist', ['Chart'], function (Chart) {
|
||||
var hourlyLabels = utils.getHoursArray().map(function (text, idx) {
|
||||
return idx % 3 ? '' : text;
|
||||
});
|
||||
var dailyLabels = utils.getDaysArray().map(function (text, idx) {
|
||||
var dailyLabels = utils.getDaysArray().slice(-7).map(function (text, idx) {
|
||||
return idx % 3 ? '' : text;
|
||||
});
|
||||
|
||||
// Only 7 days displayed in this chart
|
||||
dailyLabels.length = 7;
|
||||
|
||||
if (utils.isMobile()) {
|
||||
Chart.defaults.global.tooltips.enabled = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user