From 536d165f9bb455aa559ed108a3b9e0ad392cd242 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Tue, 28 Mar 2023 13:11:53 +0000 Subject: [PATCH] Fix loss of context when clicking zoom in/out buttons. --- src/rust/lqos_node_manager/static/ip_dump.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rust/lqos_node_manager/static/ip_dump.html b/src/rust/lqos_node_manager/static/ip_dump.html index 7e8d320c..14fed0fe 100644 --- a/src/rust/lqos_node_manager/static/ip_dump.html +++ b/src/rust/lqos_node_manager/static/ip_dump.html @@ -77,7 +77,6 @@ var pages = 0; var PAGE_SIZE = 1000; var target = ""; - var current_page = 0; var capacity = []; var activeFilter = null; var activeSet = null; @@ -138,16 +137,16 @@ if (hdr->cwr) flags |= 128; function zoomIn() { PAGE_SIZE /= 2; - current_page /= 2; + activePage /= 2; pages = packets.length / PAGE_SIZE; - viewPage(current_page); + viewPage(activePage); } function zoomOut() { PAGE_SIZE *= 2; - current_page *= 2; + activePage *= 2; pages = packets.length / PAGE_SIZE; - viewPage(current_page); + viewPage(activePage); } function paginator(active) {