mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fix zoom out button
This commit is contained in:
parent
4520c3e00e
commit
933bda8eb1
3 changed files with 5 additions and 5 deletions
|
|
@ -373,7 +373,7 @@ function attachStackedChartCallback(chart, schema_name, chart_id, zoom_reset_id,
|
|||
history.pushState({zoom_level: current_zoom_level, range: [t_start, t_end]}, "", url);
|
||||
}
|
||||
|
||||
fixChartButtons();
|
||||
chart.fixChartButtons();
|
||||
} else
|
||||
chart.is_zoomed = old_zoomed;
|
||||
});
|
||||
|
|
@ -383,7 +383,7 @@ function attachStackedChartCallback(chart, schema_name, chart_id, zoom_reset_id,
|
|||
var t_end = zoom[1];
|
||||
|
||||
chart.updateStackedChart(t_start, t_end, false, is_user_zoom, null, force);
|
||||
fixChartButtons();
|
||||
chart.fixChartButtons();
|
||||
}
|
||||
|
||||
$chart.on('dblclick', function() {
|
||||
|
|
@ -413,7 +413,7 @@ function attachStackedChartCallback(chart, schema_name, chart_id, zoom_reset_id,
|
|||
updateZoom(zoom, true, true /* force */);
|
||||
});
|
||||
|
||||
function fixChartButtons() {
|
||||
chart.fixChartButtons = function() {
|
||||
if((current_zoom_level > 0) || has_initial_zoom()) {
|
||||
$graph_zoom.find(".btn-warning:not(.custom-zoom-btn)")
|
||||
.addClass("initial-zoom-sel")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue