laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Minify_GeneralPage_View_ShowHelp.js

29 lines
584 B
JavaScript
Raw Normal View History

2024-04-19 10:59:51 +00:00
function w3tc_show_minify_help() {
W3tc_Lightbox.open({
id: 'w3tc-overlay',
close: '',
width: 800,
height: 610,
url: ajaxurl + '?action=w3tc_ajax&_wpnonce=' + w3tc_nonce +
'&w3tc_action=minify_help',
callback: function(lightbox) {
jQuery('.btn-primary', lightbox.container).click(function() {
lightbox.close();
});
lightbox.resize();
}
});
}
jQuery(function($) {
$('#minify__enabled').click(function() {
var checked = $(this).is(':checked');
if (!checked)
return;
w3tc_show_minify_help();
});
});