From: Vincent Vanwaelscappel Date: Thu, 25 Aug 2022 13:58:21 +0000 (+0200) Subject: wip #5225 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e9d774b65f4ffe58dd56bb2d54565a0881be41ff;p=sandvik-apps.git wip #5225 @0.5 --- diff --git a/CrushingChamber/_doc/data.xlsx b/CrushingChamber/_doc/data.xlsx index a2ea7fc..78bbc02 100644 Binary files a/CrushingChamber/_doc/data.xlsx and b/CrushingChamber/_doc/data.xlsx differ diff --git a/CrushingChamber/js/script.js b/CrushingChamber/js/script.js index a576979..bb69243 100644 --- a/CrushingChamber/js/script.js +++ b/CrushingChamber/js/script.js @@ -534,6 +534,9 @@ function addField(name, value) { html += ''; hasSelected = value === ''; $.each(f.options, function (k, v) { + if(!v){ + return; + } if (value == k) { hasSelected = true; } diff --git a/CrushingChamber/tools/refreshdata.php b/CrushingChamber/tools/refreshdata.php index 1a21fad..4ac29c9 100644 --- a/CrushingChamber/tools/refreshdata.php +++ b/CrushingChamber/tools/refreshdata.php @@ -3,7 +3,7 @@ require_once 'common.php'; $root = __DIR__ . '/../'; $js = $root . 'js/data.js'; $xlsx = $root . '/_doc/data.xlsx'; -$data = postFiles('https://extranet.cubedesigners.com/tools/convertXlsxToJson', $xlsx, 'file', ['dataorg' => 'excelToArray', 'format' => 'js']); +$data = postFiles('https://toolbox.fluidbook.com/opentools/doexcel2json', $xlsx, 'file', ['dataorg' => 'excelToArray', 'format' => 'js']); $data = str_replace('"SUISSE"', '"CH"',$data); file_put_contents($js, $data); header('Location: ../'); \ No newline at end of file