diff --git a/public/less/admin/general/dashboard.less b/public/less/admin/general/dashboard.less index 585d81f1d2..12e542e32a 100644 --- a/public/less/admin/general/dashboard.less +++ b/public/less/admin/general/dashboard.less @@ -153,4 +153,8 @@ color: #999; } } + + .updatePageviewsGraph.active { + font-weight: bold; + } } \ No newline at end of file diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.js index 07e566ca68..5a582abbda 100644 --- a/public/src/admin/general/dashboard.js +++ b/public/src/admin/general/dashboard.js @@ -296,6 +296,8 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s until = lastMonth.getTime(); } updateTrafficGraph($(this).attr('data-units'), until); + $('[data-action="updateGraph"]').removeClass('active'); + $(this).addClass('active'); }); socket.emit('admin.rooms.getAll', Admin.updateRoomUsage); diff --git a/src/views/admin/general/dashboard.tpl b/src/views/admin/general/dashboard.tpl index ee617ed0e7..d904637fe4 100644 --- a/src/views/admin/general/dashboard.tpl +++ b/src/views/admin/general/dashboard.tpl @@ -13,15 +13,15 @@