From f176558a39a13ae8457c5791187b7fd5046a9eb7 Mon Sep 17 00:00:00 2001 From: Ludy Date: Mon, 12 Aug 2024 18:22:32 +0200 Subject: [PATCH] Fix: Conditional Attribute Binding for the multiple Attribute in the File Selector Fragment (#1665) --- src/main/resources/templates/fragments/common.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/templates/fragments/common.html b/src/main/resources/templates/fragments/common.html index 291b75e8..f790f6c6 100644 --- a/src/main/resources/templates/fragments/common.html +++ b/src/main/resources/templates/fragments/common.html @@ -81,19 +81,19 @@ // Find the file input within the form var fileInput = $('input[type="file"]'); - + // Find the closest enclosing form of the file input var form = fileInput.closest('form'); - + // Find the submit button within the form var submitButton = form.find('button[type="submit"], input[type="submit"]'); - + const boredWaitingText = /*[[#{bored}]]*/ 'Bored Waiting?'; const downloadCompleteText = /*[[#{downloadComplete}]]*/ 'Download Complete'; window.downloadCompleteText = downloadCompleteText; // Create the 'show-game-btn' button var gameButton = $('

'); - + // Insert the 'show-game-btn' just above the submit button submitButton.before(gameButton); @@ -147,14 +147,14 @@
- +