]> _ Git - sandvik-apps.git/commitdiff
wait #4239 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 26 Feb 2021 17:39:34 +0000 (18:39 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 26 Feb 2021 17:39:34 +0000 (18:39 +0100)
WearParts/_doc/client.xlsx
WearParts/_doc/data5.xlsx [new file with mode: 0644]
WearParts/_doc/translations.xlsx [new file with mode: 0644]
WearParts/_doc/wearparts.xlsx
WearParts/js/script.js
WearParts/tools/convertclientdata.php

index 779df0785a26fbb86f5c3553ea5f27a174d8dd3d..a605a06686a3685b5d133f7196fccbc149a23c0b 100644 (file)
Binary files a/WearParts/_doc/client.xlsx and b/WearParts/_doc/client.xlsx differ
diff --git a/WearParts/_doc/data5.xlsx b/WearParts/_doc/data5.xlsx
new file mode 100644 (file)
index 0000000..de46489
Binary files /dev/null and b/WearParts/_doc/data5.xlsx differ
diff --git a/WearParts/_doc/translations.xlsx b/WearParts/_doc/translations.xlsx
new file mode 100644 (file)
index 0000000..2820265
Binary files /dev/null and b/WearParts/_doc/translations.xlsx differ
index 9b0c33caafbf0345a8ed61a0278fe87b95b3ff17..382b33f3a45d520089ac4abb7d9afdcec60b3fc4 100644 (file)
Binary files a/WearParts/_doc/wearparts.xlsx and b/WearParts/_doc/wearparts.xlsx differ
index 2bca811f67f18fa1afd02a6dea59014c393f7a20..9069eb350ff5ddd5288b40d2359d78485415675e 100644 (file)
@@ -485,7 +485,6 @@ function addField(f, value) {
             noptions++;
         });
 
-
         if (f.type === 'select') {
             res = '<select id="' + id + '">';
         } else {
@@ -572,15 +571,13 @@ function addField(f, value) {
             res += '</div>';
         }
 
-
         if (options.length <= 1 && !f.prevent_ignore) {
             setInputValue(f.id, optionsValues[0]);
             if (value !== optionsValues[0]) {
                 window.updateFormAgain = true;
             }
-        }
-        if (options.length <= 1 && !f.prevent_ignore) {
             hidden = true;
+            console.log(options,optionsValues);
         }
     } else if (f.type === "oresg") {
         input = true;
index 522a43d271b2740a53da3f69efcb761a5dd8f86e..377df2edd01d072d24220b6525b91acb4ca098fe 100644 (file)
@@ -55,4 +55,4 @@ foreach ($questions as $question => $answers) {
 }
 
 $writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($res);
-$writer->save(__DIR__ . '/../_doc/data.xlsx');
\ No newline at end of file
+$writer->save(__DIR__ . '/../_doc/data5.xlsx');
\ No newline at end of file