chart.min.js
6 months ago
check-webp.js
4 years ago
check-webp.min.js
4 years ago
eio-beacon.js
2 years ago
eio-bulk-table.js
2 months ago
eio-bulk.js
2 months ago
eio-settings.js
3 months ago
eio-tools.js
2 months ago
flag.js
3 years ago
jquery-ui-1.10.1.custom.css
2 months ago
lazysizes-post.js
6 months ago
lazysizes-pre.js
6 months ago
lazysizes.js
5 years ago
lazysizes.min.js
6 months ago
load-webp.js
2 years ago
load-webp.min.js
2 years ago
ls.print.js
6 years ago
ls.print.min.js
6 years ago
ls.unveilhooks-addon.js
3 years ago
ls.unveilhooks.js
3 years ago
media.js
2 years ago
nextcellent.js
5 years ago
nextgen.js
3 years ago
resize-detection.js
2 years ago
resize-detection.min.js
4 years ago
webp.js
3 months ago
nextgen.js
44 lines
| 1 | jQuery(document).on( 'click', '.ewww-manual-optimize', function() { |
| 2 | var post_id = jQuery(this).data('id'); |
| 3 | var ewww_nonce = jQuery(this).data('nonce'); |
| 4 | var ewww_manual_optimize_data = { |
| 5 | action: 'ewww_ngg_manual', |
| 6 | ewww_manual_nonce: ewww_nonce, |
| 7 | ewww_force: 1, |
| 8 | ewww_attachment_ID: post_id, |
| 9 | }; |
| 10 | jQuery('#ewww-nextgen-status-' + post_id ).html( ewww_vars.optimizing ); |
| 11 | jQuery.post(ajaxurl, ewww_manual_optimize_data, function(response) { |
| 12 | var ewww_manual_response = JSON.parse(response); |
| 13 | if (ewww_manual_response.error) { |
| 14 | jQuery('#ewww-nextgen-status-' + post_id ).html( ewww_manual_response.error ); |
| 15 | } else if (ewww_manual_response.success) { |
| 16 | jQuery('#ewww-nextgen-status-' + post_id ).html( ewww_manual_response.success ); |
| 17 | } |
| 18 | }); |
| 19 | return false; |
| 20 | }); |
| 21 | jQuery(document).on( 'click', '.ewww-manual-image-restore', function() { |
| 22 | var post_id = jQuery(this).data('id'); |
| 23 | var ewww_nonce = jQuery(this).data('nonce'); |
| 24 | var ewww_manual_optimize_data = { |
| 25 | action: 'ewww_ngg_image_restore', |
| 26 | ewww_manual_nonce: ewww_nonce, |
| 27 | ewww_attachment_ID: post_id, |
| 28 | }; |
| 29 | jQuery('#ewww-nextgen-status-' + post_id ).html( ewww_vars.restoring ); |
| 30 | jQuery.post(ajaxurl, ewww_manual_optimize_data, function(response) { |
| 31 | var ewww_manual_response = JSON.parse(response); |
| 32 | if (ewww_manual_response.error) { |
| 33 | jQuery('#ewww-nextgen-status-' + post_id ).html( ewww_manual_response.error ); |
| 34 | } else if (ewww_manual_response.success) { |
| 35 | jQuery('#ewww-nextgen-status-' + post_id ).html( ewww_manual_response.success ); |
| 36 | } |
| 37 | }); |
| 38 | return false; |
| 39 | }); |
| 40 | jQuery(document).on('click', '.ewww-show-debug-meta', function() { |
| 41 | var post_id = jQuery(this).data('id'); |
| 42 | jQuery('#ewww-debug-meta-' + post_id).toggle(); |
| 43 | }); |
| 44 |