PluginProbe
MailerLite – WooCommerce integration / 2.0.6
MailerLite – WooCommerce integration v2.0.6
3.1.27 3.1.25 3.1.26 3.1.24 3.1.23 3.1.22 3.1.21 3.1.20 3.1.19 3.1.18 3.1.17 3.1.16 3.1.15 1.8.7 1.8.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 All 148 releases
woo-mailerlite / assets / js / bq_edit.js

bq_edit.js in MailerLite – WooCommerce integration 2.0.6, at assets/js/bq_edit.js

23 lines 674 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($) {
2
3 $('#the-list').on('click', '.editinline', function(){
4
5 // extract metadata and put it as the value for the custom field form
6 inlineEditPost.revert();
7
8 // get post id
9 var post_id = $(this).closest('tr').attr('id');
10 post_id = post_id.replace("post-", "");
11
12 // get ignore value
13 var ignore_enabled = $( '#ml_ignore_product_inline_' + post_id + ' #_ml_ignore_product').text();
14
15 $('#ml_ignore_product').prop('checked', false);
16
17 // set checked if value is yes
18 if (ignore_enabled === 'yes') {
19
20 $('#ml_ignore_product').prop('checked', true);
21 }
22 });
23 })(jQuery);