From b3d747d9cb0ee9a09c7cdd6f4448890f732afc78 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 21 Mar 2021 21:48:44 +0100 Subject: [PATCH] avoid fetchdata runnign once for showTrace --- html/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/script.js b/html/script.js index e113471..28a6092 100644 --- a/html/script.js +++ b/html/script.js @@ -1305,9 +1305,6 @@ function parseHistory() { function startPage() { console.log("Completing init"); - // Kick off first refresh. - fetchData(); - if (!globeIndex) { $('#show_trace').hide(); } @@ -1342,6 +1339,9 @@ function startPage() { pathName = window.location.pathname; processURLParams(); + // Kick off first refresh. + fetchData(); + if (!icaoFilter && globeIndex) toggleTableInView(true);