Update get-info-on-pdf.html #2212

This commit is contained in:
Anthony Stirling 2024-11-11 23:12:57 +00:00 committed by GitHub
parent 361a0c9be8
commit ceabcf2b3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,10 +30,8 @@
<!-- Button to download the JSON --> <!-- Button to download the JSON -->
<a href="#" id="downloadJson" class="btn btn-primary mt-3" style="display: none;" th:text="#{getPdfInfo.downloadJson}">Download JSON</a> <a href="#" id="downloadJson" class="btn btn-primary mt-3" style="display: none;" th:text="#{getPdfInfo.downloadJson}">Download JSON</a>
</div> </div>
<script th:src="@{'/js/fetch-utils.js'}"></script>
<script> <script>
import { fetchWithCsrf } from 'js/fetch-utils.js';
document.getElementById("pdfInfoForm").addEventListener("submit", function(event) { document.getElementById("pdfInfoForm").addEventListener("submit", function(event) {
event.preventDefault(); event.preventDefault();
@ -156,4 +154,4 @@
<th:block th:insert="~{fragments/footer.html :: footer}"></th:block> <th:block th:insert="~{fragments/footer.html :: footer}"></th:block>
</div> </div>
</body> </body>
</html> </html>