HEX
Server: Apache/2
System: Linux chaudang 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: mgawa (1021)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: /home/mgawa/public_html/wp-content/plugins/wp-schema-pro/admin/assets/js/setup-wizard.js
/* eslint-env jquery */
/**
 * File setup-wizard.js
 *
 * Handles Color Picker
 *
 * @package
 */

( function ( $ ) {
	jQuery( document ).ready( function () {
		$( document ).on(
			'click',
			'.aiosrs-pro-schema-temp-wrap',
			function ( e ) {
				e.preventDefault();

				$( '.aiosrs-pro-schema-temp-wrap' ).removeClass( 'selected' );
				$( '.aiosrs-pro-setup-actions' )
					.find( '.button-next' )
					.removeAttr( 'disabled' );
				$( this ).addClass( 'selected' );

				const type = $( this ).data( 'schema-type' ),
					title = $( this ).data( 'schema-title' );

				$( document ).find( '.bsf-aiosrs-schema-type' ).val( type );
				$( document ).find( '.bsf-aiosrs-schema-title' ).val( title );
			}
		);
	} );
} )( jQuery );