Marthee commited on
Commit
07cdd91
·
verified ·
1 Parent(s): 1530447

Update templates/proposed-GUI.html

Browse files
Files changed (1) hide show
  1. templates/proposed-GUI.html +13 -11
templates/proposed-GUI.html CHANGED
@@ -728,7 +728,7 @@ $.get( '/RetrieveMCTNames/')
728
  //___________________________________________________________________________________________________________
729
  //___________________________________________________________________________________________________________
730
 
731
- /****Values of MCTname rows at the end of the conssole( grouping shapes) -->legend summary ****/
732
  document.getElementById('duplicater').childNodes[1].value=[0,0]
733
  //___________________________________________________________________________________________________________
734
  //___________________________________________________________________________________________________________
@@ -1188,16 +1188,18 @@ function getSelectValues(select) {
1188
  document.getElementById("all").style.display = "block";
1189
 
1190
  pixelArr=[projname.value, projpart.value,projsec.value, pdfname]
1191
- if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3') )
1192
- downloadPdf(pdfname)
1193
-
1194
- $.get( '/pixelimg/'+JSON.stringify(pixelArr))
1195
- .success( function(data) {
1196
- // downloadpdf(pdfname, data1)
1197
- document.getElementById("all").style.display = "none";
1198
- if(window.confirm("Measure the purple shape drawn on the pdf using Foxit Reader, Blueabeam, or any other external tool, then enter its area and perimeter in your desired scale. \n")){
1199
- window.open(data[2]);
1200
- }
 
 
1201
  document.getElementById("all").style.display = "none";
1202
 
1203
  document.getElementById('measureADRbutton').onclick= function()
 
728
  //___________________________________________________________________________________________________________
729
  //___________________________________________________________________________________________________________
730
 
731
+ /****Values of MCTname rows at the end of the conssole( grouping shapes) --> legend summary ****/
732
  document.getElementById('duplicater').childNodes[1].value=[0,0]
733
  //___________________________________________________________________________________________________________
734
  //___________________________________________________________________________________________________________
 
1188
  document.getElementById("all").style.display = "block";
1189
 
1190
  pixelArr=[projname.value, projpart.value,projsec.value, pdfname]
1191
+ // Open popup immediately before initiating the PDF download
1192
+ window.alert("Measure the purple shape drawn on the PDF using Foxit Reader, Bluebeam, or any other external tool, then enter its area and perimeter in your desired scale.")/// {
1193
+ if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
1194
+
1195
+ downloadPdf(pdfname); // Initiate PDF download
1196
+ // }
1197
+ }
1198
+ $.get('/pixelimg/' + JSON.stringify(pixelArr))
1199
+ .success(function(data) {
1200
+ document.getElementById("all").style.display = "none";
1201
+ // Display link or any additional data if needed
1202
+ window.open(data[2]);
1203
  document.getElementById("all").style.display = "none";
1204
 
1205
  document.getElementById('measureADRbutton').onclick= function()