Marthee commited on
Commit
0bc3e96
·
verified ·
1 Parent(s): f757146

Update templates/proposed-GUI.html

Browse files
Files changed (1) hide show
  1. templates/proposed-GUI.html +3 -2
templates/proposed-GUI.html CHANGED
@@ -828,7 +828,8 @@ document.getElementById("pagetitle").click();
828
  // }
829
 
830
  function downloadPdf(pdfname) {
831
- fetch('/get-pdf/'+pdfname)
 
832
  .then(response => response.blob())
833
  .then(blob => {
834
  const url = URL.createObjectURL(blob);
@@ -1181,7 +1182,7 @@ function getSelectValues(select) {
1181
  // {
1182
  // Show alert immediately to prompt the user
1183
  if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
1184
- downloadPdf(pdfname);
1185
  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.");
1186
  }
1187
  canvasimg='';
 
828
  // }
829
 
830
  function downloadPdf(pdfname) {
831
+ console.log('pdfname===',pdfname)
832
+ fetch('/get-pdf/'+JSON.stringify(pdfname))
833
  .then(response => response.blob())
834
  .then(blob => {
835
  const url = URL.createObjectURL(blob);
 
1182
  // {
1183
  // Show alert immediately to prompt the user
1184
  if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
1185
+ downloadPdf(elem.value);
1186
  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.");
1187
  }
1188
  canvasimg='';