Ort, Datum
Unterschrift mit Geburtsdatum bzw. firmenmäßige Zeichnung des/r Liegenschaftseigentümer(s)
diff --git a/Layout/default/ConstructionConsent/View.php b/Layout/default/ConstructionConsent/View.php
index 26bb69ee3..d45f30ec4 100644
--- a/Layout/default/ConstructionConsent/View.php
+++ b/Layout/default/ConstructionConsent/View.php
@@ -1193,40 +1193,19 @@ $pagination_entity_name = "Adressen";
}
}});
- // do the same for prioritize
$("#prioritize").on("change", function() {
- const reason = prompt("Bitte geben Sie einen Grund für die Priorisierung ein:");
- // reason must be atleast 3 characters long
- if (reason != null && reason.length < 3) {
- notify("error", "Begründung muss mindestens 3 Zeichen lang sein");
- $(this).prop("checked", false);
- switcheries.forEach(s => s.setPosition());
- return;
- }
- if (reason != null) {
- $.post("", {
- consent_id: =$item->id?>,
- text: `Priorisierung wurde ${$(this).prop("checked") ? "aktiviert" : "deaktiviert"} | Begründung: ${reason}`
- }, function(success) {
- if (success.status != "OK") {
- notify("error", "Status konnte nicht gespeichert werden");
- } else {
- notify("success", "Status erfolgreich gespeichert");
- }
- }, 'json');
-
- $.get("", {
- consent_id: =$item->id?>,
- checked: $(this).prop("checked") ? 1 : 0
- }, function(success) {
- if (success.status != "OK") {
- notify("error", "Status konnte nicht gespeichert werden");
- setTimeout(() => {location.reload()}, 150);
- } else {
- notify("success", "Status erfolgreich gespeichert");
- setTimeout(() => {location.reload()}, 150);
- }
- }, 'json');
+ $.get("", {
+ consent_id: =$item->id?>,
+ checked: $(this).prop("checked") ? 1 : 0
+ }, function(success) {
+ if (success.status != "OK") {
+ notify("error", "Status konnte nicht gespeichert werden");
+ setTimeout(() => {location.reload()}, 150);
+ } else {
+ notify("success", "Status erfolgreich gespeichert");
+ setTimeout(() => {location.reload()}, 150);
+ }
+ }, 'json')
}
});