From 7c0ab4e45d78bd57c5f9026f7fa96c1f02eb84bf Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 14 Feb 2025 15:45:04 +0100 Subject: [PATCH] Made file pastable in ConstructionConsent/Form --- Layout/default/ConstructionConsent/Form.php | 91 ++++++++++++--------- 1 file changed, 52 insertions(+), 39 deletions(-) diff --git a/Layout/default/ConstructionConsent/Form.php b/Layout/default/ConstructionConsent/Form.php index 3f518f870..37d235473 100644 --- a/Layout/default/ConstructionConsent/Form.php +++ b/Layout/default/ConstructionConsent/Form.php @@ -119,57 +119,61 @@
-

Nutzung

-
- -
- " /> -
-
+
+

Nutzung

-
-
-
- +
+ +
+ " /> +
-
-
-
-
- +
"> +
+
+
+ +
-
-
-
-
- +
+
+
+ +
-
-
-
-
- +
+
+
+ +
+ +
+
+
+ +
+
+

-

Planskizze / Bilddatei

@@ -268,11 +272,13 @@ $("#adb_hausnummer_id").val("").change(); $("#street-search").show(); + $("#usage-checkbox-container").show(); } else { $("#street-search").hide(); $("#adb_strasse_id").val("").change(); $("#address-search").show(); + $("#usage-checkbox-container").hide(); } }); @@ -391,6 +397,13 @@ $("#gstnr").val(kg + gst); } + $(window).bind("paste", (e) => { + var files = e.originalEvent.clipboardData.files; + if(files.length > 0) { + $("#consent_plan_image").prop("files", files); + $("#consent_plan_image").change(); + } + }); \ No newline at end of file