This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
// Customizer Reset
jQuery(function ($) {
$button = jQuery('#flatsome-customizer-reset');
$button.on('click', function (event) {
event.preventDefault();
var data = {
wp_customize: 'on',
action: 'customizer_reset',
nonce: _FlatsomeCustomizerReset.nonce.reset
};
var r = confirm(_FlatsomeCustomizerReset.confirm);
if (!r) return;
$button.attr('disabled', 'disabled');
$.post(ajaxurl, data, function () {
wp.customize.state('saved').set(true);
location.reload();
});
});
});