From c92908d2b510328bb500e27f44cde84c759a4e03 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 23 May 2024 18:30:48 +0200 Subject: [PATCH] fixup minor shuffle mistakes --- html/script.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/html/script.js b/html/script.js index caad16e..904d9a9 100644 --- a/html/script.js +++ b/html/script.js @@ -1093,7 +1093,7 @@ function initPage() { // Set page basics document.title = PageName; - initializeUnitsSelector; + initializeUnitsSelector(); TAR.planeMan.init(); if (loStore['sidebar_width'] != null) @@ -3857,10 +3857,8 @@ function refreshFeatures() { activeCols.push(col); } } - if (!initialize) { - for (let i = 0; i < g.planesOrdered.length; ++i) { - g.planesOrdered[i].destroyTR(); - } + for (let i = 0; i < g.planesOrdered.length; ++i) { + g.planesOrdered[i].destroyTR(); } let table = ''; table += ''; @@ -3884,6 +3882,10 @@ function refreshFeatures() { template += ''; } planeRowTemplate.innerHTML = template; + + if (!initializing) { + planeMan.refresh(); + } } planeMan.setColumnVis = function (col, visible) { @@ -3900,14 +3902,14 @@ function refreshFeatures() { } //console.trace(); - const atime = false; - atime && console.time("planeMan.refresh()"); - if (initializing) { planeMan.redraw(); initializing = false; } + const atime = false; + atime && console.time("planeMan.refresh()"); + const ctime = false; // gets enabled for debugging table refresh speed // globeTableLimit = 1000; for testing performance