From 55f0fe5fe27a0e34009aa76e586c9101c8ecd6a2 Mon Sep 17 00:00:00 2001 From: Tom Richards Date: Fri, 18 Oct 2024 10:35:21 +0100 Subject: [PATCH] call `updateDeployInfo()` more reliably to ensure recent deploys and restrictions reflect the choices more so than now --- riff-raff/app/assets/javascripts/form-autocomplete.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/riff-raff/app/assets/javascripts/form-autocomplete.coffee b/riff-raff/app/assets/javascripts/form-autocomplete.coffee index 38deefaa2..d15444048 100644 --- a/riff-raff/app/assets/javascripts/form-autocomplete.coffee +++ b/riff-raff/app/assets/javascripts/form-autocomplete.coffee @@ -119,7 +119,7 @@ $ -> input.on('change', updateFavouriteButton) input.on('keyup', updateFavouriteButton) - $('#projectInput').blur updateDeployInfo + $('#projectInput').blur -> updateDeployInfo() $('#buildInput').each -> input = $(this) @@ -156,8 +156,9 @@ $ -> updateStageInfo() ) - $('#stage').change -> - updateDeployInfo() + $('#buildInput').change -> updateDeployInfo() + + $('#stage').change -> updateDeployInfo() updateDeployInfo()