3 Revīzijas d0580da1a9 ... d6ca9a1edd

Autors SHA1 Ziņojums Datums
  Thomas Thümmler d6ca9a1edd another missing ; terminator 8 mēneši atpakaļ
  Thomas Thümmler a761f7ae58 added several ; in submit() 8 mēneši atpakaļ
  Thomas Thümmler aac55e22b6 terminated line 138 (detailedInfo) with ; 8 mēneši atpakaļ
2 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. 6 6
      public/checklist.php
  2. 1 1
      public/index.php

+ 6 - 6
public/checklist.php

@@ -294,7 +294,7 @@
               var dateTime =  (date.getUTCFullYear()).toString() + '-' + (("0" + (date.getUTCMonth() + 1)).slice(-2)) + '-' + (("0" + date.getUTCDate()).slice(-2)) + "," + (("0" + date.getUTCHours()).slice(-2)) + ':' + (("0" + date.getUTCMinutes()).slice(-2)) + ':' + (("0" + date.getUTCSeconds()).slice(-2));
               var runRange = document.getElementById('First_run').value + ' - ' + document.getElementById('Last_run').value;
 
-              var Summary     = ''
+              var Summary     = '';
               Summary += 'Author: '+ localStorage.getItem('author')+'<br>';
               Summary += 'Submission time: ' + dateTime + '<br>';
               Summary += 'Measurement type: '+ localStorage.getItem('measurement')+'<br>';
@@ -305,26 +305,26 @@
               forwardingInfo += "?Author="     + localStorage.getItem('author');
               forwardingInfo += "&Submitted="  + dateTime;
 
-              forwardingInfo += "&Mode="       + localStorage.getItem('measurement')
+              forwardingInfo += "&Mode="       + localStorage.getItem('measurement');
               forwardingInfo += "&Run_Range="  + runRange;
 
               var temp = '';
               for (let i = 0; i < arrayLength; i++){
                 var good = document.getElementById(Checkboxes[i]);
-                var comment = document.getElementById(Comments[i])
+                var comment = document.getElementById(Comments[i]);
                 if (good.checked == true){
-                  forwardingInfo += "&"+sqlNAME[i]+"=good"
+                  forwardingInfo += "&"+sqlNAME[i]+"=good";
                   //temp += '<pre>    ' + VariableName[i] + ': <br>        status = good <br>';
                 }
                 else{
-                  forwardingInfo += "&"+sqlNAME[i]+"=bad"
+                  forwardingInfo += "&"+sqlNAME[i]+"=bad";
                   temp += '    ' + VariableName[i] + ': <br>        status = bad <br>        comment = '+ comment.value +'<br>';
                   badFlags += 1;
                 }
               }
               Summary += '    ' + badFlags.toString() + ' item(s) have been makred as bad.<br><br>';
               if (badFlags > 0) {
-                Summary += temp
+                Summary += temp;
               }
               if(additional_comments.value != ""){
                 Summary += '<br>Additional comments: <br><br>'+additional_comments.value;

+ 1 - 1
public/index.php

@@ -135,7 +135,7 @@
             function detailedInfo(message) {
                 var str = message;
                 var alert_string = str.replace(/<br?>/gi, "\n").replace(/<pre?>/gi, "").replace(/<\/pre?>/gi, "");
-                alert(alert_string)
+                alert(alert_string);
             }
         </script>