mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixes #5606 :rage2:
This commit is contained in:
@@ -297,7 +297,9 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s
|
|||||||
$('[data-action="updateGraph"]:not([data-units="custom"])').on('click', function () {
|
$('[data-action="updateGraph"]:not([data-units="custom"])').on('click', function () {
|
||||||
var until = new Date();
|
var until = new Date();
|
||||||
var amount = $(this).attr('data-amount');
|
var amount = $(this).attr('data-amount');
|
||||||
|
if ($(this).attr('data-units') === 'days') {
|
||||||
until.setHours(0, 0, 0, 0);
|
until.setHours(0, 0, 0, 0);
|
||||||
|
}
|
||||||
until = until.getTime();
|
until = until.getTime();
|
||||||
updateTrafficGraph($(this).attr('data-units'), until, amount);
|
updateTrafficGraph($(this).attr('data-units'), until, amount);
|
||||||
$('[data-action="updateGraph"]').removeClass('active');
|
$('[data-action="updateGraph"]').removeClass('active');
|
||||||
|
|||||||
Reference in New Issue
Block a user