Skip to content

Commit

Permalink
call updateDeployInfo() more reliably to ensure recent deploys and …
Browse files Browse the repository at this point in the history
…restrictions reflect the choices more so than now
  • Loading branch information
twrichards committed Oct 18, 2024
1 parent adbfb3b commit 2b2aa87
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions riff-raff/app/assets/javascripts/form-autocomplete.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ $ ->
input.on('change', updateFavouriteButton)
input.on('keyup', updateFavouriteButton)

$('#projectInput').blur updateDeployInfo
$('#projectInput').blur -> updateDeployInfo()

$('#buildInput').each ->
input = $(this)
Expand All @@ -136,9 +136,11 @@ $ ->
menuOpen = false
updateBuildInfo( input.val() )
updateStageInfo()
updateDeployInfo()
select: (event,ui) ->
updateBuildInfo( input.val() )
updateStageInfo()
updateDeployInfo()
minLength:0

$('#buildInput').on('input keyup',
Expand All @@ -154,10 +156,12 @@ $ ->
$('#buildInput').on('input keyup',
->
updateStageInfo()
updateDeployInfo()
)

$('#stage').change ->
updateDeployInfo()
$('#buildInput').blur -> updateDeployInfo()

$('#stage').change -> updateDeployInfo()

updateDeployInfo()

Expand Down

0 comments on commit 2b2aa87

Please sign in to comment.