HEX
Server: Apache
System: Linux beta.alfanet.ee 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: busines1 (1252)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home-ssd1/busines1/public_html/wp-content/themes/storefront/assets/js/admin/admin.js
/* global ajaxurl, storefrontNUX */
( function ( wp, $ ) {
	'use strict';

	if ( ! wp ) {
		return;
	}

	/*
	 * Ajax request that will hide the Storefront NUX admin notice or message.
	 */
	function dismissNux() {
		$.ajax( {
			type: 'POST',
			url: ajaxurl,
			data: {
				nonce: storefrontNUX.nonce,
				action: 'storefront_dismiss_notice',
			},
			dataType: 'json',
		} );
	}

	$( function () {
		// Dismiss notice
		$( document ).on(
			'click',
			'.sf-notice-nux .notice-dismiss',
			function () {
				dismissNux();
			}
		);

		// Dismiss notice inside theme page.
		$( document ).on( 'click', '.sf-nux-dismiss-button', function () {
			dismissNux();
			$( '.storefront-intro-setup' ).hide();
			$( '.storefront-intro-message' ).fadeIn( 'slow' );
		} );
	} );
} )( window.wp, jQuery );