2023-06-05 11:23:16 +00:00
|
|
|
function w3tc_show_minify_help() {
|
2024-03-28 09:40:06 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
});
|
2023-06-05 11:23:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jQuery(function($) {
|
|
|
|
$('#minify__enabled').click(function() {
|
|
|
|
var checked = $(this).is(':checked');
|
|
|
|
if (!checked)
|
|
|
|
return;
|
|
|
|
|
|
|
|
w3tc_show_minify_help();
|
|
|
|
});
|
|
|
|
});
|