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); }