From 56eaeffa74e8a1ba70799c73141c434c4dec8d61 Mon Sep 17 00:00:00 2001 From: cigamit Date: Sat, 23 Dec 2017 11:30:22 -0600 Subject: [PATCH] Zoom context menu stays open after zoom out actions --- docs/CHANGELOG | 1 + include/js/jquery.zoom.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 1bcab3c2a8..2179d51c88 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -26,6 +26,7 @@ Cacti CHANGELOG -issue#1143: ss_host_cpu.php - Division by zero / Invalid Return Value -issue: Updated Graph pagenation and filter reset -issue: Resolve issues with cacti_version_compare() processing +-issue: Zoom context menu stays open after zoom out actions 1.1.28 -issue#958: User Group Tree permissions not calculated fully diff --git a/include/js/jquery.zoom.js b/include/js/jquery.zoom.js index 2551d65cb3..36bed03539 100644 --- a/include/js/jquery.zoom.js +++ b/include/js/jquery.zoom.js @@ -714,6 +714,9 @@ function zoomAction_zoom_out(multiplier){ setCustomFilterActionActionAndDate(); + /* hide context menu if open */ + zoomContextMenu_hide(); + multiplier--; /* avoid that we can not zoom out anymore if start and end date will be equal */ if (zoom.graph.timespan == 0) {