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

jQuery(document).ready(function($) {
	// Show group form when add group button is clicked
	$('#kcm-add-group-btn, #kcm-add-first-group').on('click', function(e) {
		e.preventDefault();
		$('#kcm-group-form').slideDown();
		$('html, body').animate({
			scrollTop: $('#kcm-group-form').offset().top - 50
		}, 500);
	});
});
