From f516f8cd6fd94325347b1d023d1bb55b7a1171e0 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Thu, 16 May 2024 11:03:13 +0200 Subject: [PATCH] Implements: #550 --- app/templates/advanced_config.html | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/app/templates/advanced_config.html b/app/templates/advanced_config.html index 15c361d3e..2efda5f7a 100644 --- a/app/templates/advanced_config.html +++ b/app/templates/advanced_config.html @@ -209,6 +209,28 @@
Cloud Provider:
}); } + function selectedSiteImageChanged() { + // disable the other select of AppDB images + var selected = $("#selectedSiteImage option:selected" ).text(); + if (selected == " - Select one image - ") { + $("#selectedImage").prop('disabled', false); + } else { + $("#selectedImage").prop('disabled', true); + } + activateSubmit() + } + + function selectedImageChanged() { + // disable the other select of site images + var selected = $("#selectedImage option:selected" ).text(); + if (selected == " - Select one image - ") { + $("#selectedSiteImage").prop('disabled', false); + } else { + $("#selectedSiteImage").prop('disabled', true); + } + activateSubmit() + } + function activateSubmit() { $(".submitBtn").attr("disabled", false); } @@ -252,7 +274,7 @@
Cloud Provider:

- @@ -260,7 +282,7 @@
Cloud Provider: