mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-22 08:16:25 -06:00
Fix loss of context when clicking zoom in/out buttons.
This commit is contained in:
parent
33d48f3e82
commit
2b4ce66f70
@ -76,7 +76,6 @@
|
||||
var pages = 0;
|
||||
var PAGE_SIZE = 1000;
|
||||
var target = "";
|
||||
var current_page = 0;
|
||||
var capacity = [];
|
||||
var activeFilter = null;
|
||||
var activeSet = null;
|
||||
@ -137,16 +136,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user