/**
 * Admin Clubs Page JavaScript
 *
 * Handles add club button click to reveal form
 *
 * @package KarateClubManager
 * @since 1.0.174
 */

jQuery(document).ready(function($) {
	// Show form when clicking Add New button
	$('#kcm-add-club-btn, #kcm-add-club-btn-empty').on('click', function(e) {
		e.preventDefault();
		$('#kcm-club-form').slideDown();
		// Use trigger instead of deprecated focus()
		$('#club_name').trigger('focus');
	});
});
