fixed responsive pie charts

v1.18.x
psychobunny 11 years ago
parent 456f087dea
commit 8c9d362535

@ -277,7 +277,11 @@ define('forum/admin/general/dashboard', ['semver'], function(semver) {
setInterval(updateTrafficGraph, 15000);
updateTrafficGraph();
$(window).on('resize', function() {
$(window).on('resize', adjustPieCharts);
adjustPieCharts();
}
function adjustPieCharts() {
$('.pie-chart.legend-up').each(function() {
var $this = $(this);
@ -287,7 +291,6 @@ define('forum/admin/general/dashboard', ['semver'], function(semver) {
$this.removeClass('compact');
}
});
});
}
function updateTrafficGraph() {

Loading…
Cancel
Save