From e3df4b667b0203acf39b66a8519664eb476bb856 Mon Sep 17 00:00:00 2001 From: Keltena Date: Wed, 24 Jul 2024 12:32:46 -0400 Subject: [PATCH] Select the correct element id to check if game is unreleased. Fixes #397, where previously-released entries failed to trigger a warning or disable submission. --- IFComp/root/src/entry/_form.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IFComp/root/src/entry/_form.tt b/IFComp/root/src/entry/_form.tt index a8a0cef9..102f27b6 100644 --- a/IFComp/root/src/entry/_form.tt +++ b/IFComp/root/src/entry/_form.tt @@ -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); }