mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Chart improvements
This commit is contained in:
parent
1c1e84c5a3
commit
1be5659c0b
4 changed files with 13 additions and 2 deletions
|
|
@ -289,6 +289,14 @@ function has_initial_zoom() {
|
|||
|
||||
var current_zoom_level = (history.state) ? (history.state.zoom_level) : 0;
|
||||
|
||||
function fixJumpButtons(epoch_end) {
|
||||
var duration = $("#btn-jump-time-ahead").data("duration");
|
||||
if((epoch_end + duration)*1000 > $.now())
|
||||
$("#btn-jump-time-ahead").addClass("disabled");
|
||||
else
|
||||
$("#btn-jump-time-ahead").removeClass("disabled");
|
||||
};
|
||||
|
||||
// add a new updateStackedChart function
|
||||
function attachStackedChartCallback(chart, schema_name, chart_id, zoom_reset_id, flows_dt, params, step, align_step, show_all_smooth, initial_range) {
|
||||
var pending_request = null;
|
||||
|
|
@ -423,6 +431,8 @@ function attachStackedChartCallback(chart, schema_name, chart_id, zoom_reset_id,
|
|||
chart.is_zoomed = false;
|
||||
}
|
||||
|
||||
fixJumpButtons(params.epoch_end);
|
||||
|
||||
if(current_zoom_level > 0)
|
||||
$zoom_reset.show();
|
||||
else
|
||||
|
|
|
|||
2
httpdocs/js/ntop.min.js
vendored
2
httpdocs/js/ntop.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue