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 d45f30ec4..804ae4a22 100644
--- a/Layout/default/ConstructionConsent/View.php
+++ b/Layout/default/ConstructionConsent/View.php
@@ -1193,7 +1193,19 @@ $pagination_entity_name = "Adressen";
}
}});
+ // do the same for prioritize
$("#prioritize").on("change", function() {
+ $.post("", {
+ consent_id: =$item->id?>,
+ text: `Priorisierung wurde ${$(this).prop("checked") ? "aktiviert" : "deaktiviert"}`
+ }, 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
@@ -1205,8 +1217,8 @@ $pagination_entity_name = "Adressen";
notify("success", "Status erfolgreich gespeichert");
setTimeout(() => {location.reload()}, 150);
}
- }, 'json')
- }
+ }, 'json');
+
});
});