From 3e26ea5dff04b8e3bc929e5756cf262c873d4ef6 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 13 Feb 2025 15:23:45 +0100 Subject: [PATCH] ConstructionConsent/View: setting owner status returned when result accepted or denied --- Layout/default/ConstructionConsent/View.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Layout/default/ConstructionConsent/View.php b/Layout/default/ConstructionConsent/View.php index c7db1f07d..0a826ce34 100644 --- a/Layout/default/ConstructionConsent/View.php +++ b/Layout/default/ConstructionConsent/View.php @@ -931,6 +931,14 @@ $pagination_entity_name = "Adressen"; $("#result-" + update.id + "-text").removeClass("text-success") }, 1500); + if(update.result == "accepted" || update.result == "denied") { + if(!$("#status-" + update.id + "-input select").is(":visible")) { + toggleStatusControl(update.id); + } + $("#status-" + update.id + "-input select").val("returned"); + saveStatusControl(parseInt(update.id)); + } + toggleResultControl(update.id); }