Skip to content

Commit

Permalink
Select the correct element id to check if game is unreleased.
Browse files Browse the repository at this point in the history
Fixes #397, where previously-released entries failed to trigger a warning or disable submission.
  • Loading branch information
Keltena committed Jul 24, 2024
1 parent 47cc730 commit e3df4b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IFComp/root/src/entry/_form.tt
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ function update_playtime_warning() {
}
}

$( '#unreleased').change( function() {
$( '#game\\.entry\\.unreleased' ).change( function() {
update_unreleased_warning()
} );

function update_unreleased_warning() {
if ( $( '#unreleased').val() == 0 ) {
if ( $( '#game\\.entry\\.unreleased' ).val() == 0 ) {
$( '#released-game-warning' ).show();
$(':input[type="submit"]').prop('disabled', true);
}
Expand Down

0 comments on commit e3df4b6

Please sign in to comment.