HEX
Server: Apache
System: Linux p3plzcpnl504902.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: nhqyemt2u0zd (3690907)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/nhqyemt2u0zd/www/wp-content/themes/kitgreen1.1.0/framework/admin/assets/js/action.js
(function($) {
	"use strict";
	jQuery(document).ready(function($) {
		jQuery('#jwss_import').click(function(e){
			var $_this = $(this);
			$_this.addClass('importing');
			var $import_true = confirm('Are you sure to import dummy content ? It will overwrite the existing data and make sure you was installed plugins required and recommend of theme!');
			if($import_true == false) return false;
			jQuery('.import-message').html('<span class="loading"></span> Please Waiting');
			jQuery.ajax({
				type: 'POST',
				url: ajaxurl,
				data: {
					'action': 'jwss_sample'
				},
				success: function(data, textStatus, XMLHttpRequest){
					console.log(data);
					jQuery('.import-message').html('<span class="completed"></span> Import is Completed.<br>Please reload page before change theme options.');
					$_this.removeClass('importing').addClass('completed');
				}
			});
		});
	});
})(jQuery);