PluginProbe
MailerLite – WooCommerce integration / 3.1.21
MailerLite – WooCommerce integration v3.1.21
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 / admin / assets / js / ml-quick-edit.js

ml-quick-edit.js in MailerLite – WooCommerce integration 3.1.21, at admin/assets/js/ml-quick-edit.js

18 lines 539 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(function ($) {
2 const wpInlineEdit = inlineEditPost.edit;
3
4 inlineEditPost.edit = function (id) {
5 wpInlineEdit.apply(this, arguments);
6
7 const postId = typeof id === 'object' ? parseInt(this.getId(id)) : id;
8
9 const isIgnored = $('#ml_ignore_product_inline_' + postId)
10 .find('._ml_ignore_product')
11 .text()
12 .trim();
13
14 $('.inline-edit-row:visible')
15 .find('input[name="ml_ignore_product"]')
16 .prop('checked', isIgnored === 'yes');
17 };
18 });