Skip to content

Commit

Permalink
Force a recalculation of whether to show site templates panel after c…
Browse files Browse the repository at this point in the history
…hanging template category dropdown.

See #3268.
  • Loading branch information
boonebgorges committed Nov 2, 2023
1 parent 3128c61 commit 1ee57cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wp-content/themes/openlab/js/group-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ jQuery( document ).ready(

setTimeout( maybeShowSiteTemplates, 1500 )

// We must also run maybeShowSiteTemplates after a category change.
$( '.site-template-categories' ).on( 'change', function() {
setTimeout( maybeShowSiteTemplates, 1500 )
} );

if ( 'course' === group_type && ! $setuptoggle.is( ':checked' ) ) {
$setuptoggle.trigger( 'click' );
}
Expand Down

0 comments on commit 1ee57cf

Please sign in to comment.