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

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