PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
← All changes | assets/js/admin/settings.js +29 -0 2.2.72.3.2 View file →
@@ -30,6 +30,35 @@
30 30 $(editor.getTextArea()).trigger('change');
31 31 });
32 32 });
33 33 }
34 +
35 + // White Label upsell modal.
36 + var $whiteLabelModal = $('#merchant-white-label-modal');
37 + if ($whiteLabelModal.length) {
38 + var openWhiteLabelModal = function openWhiteLabelModal(e) {
39 + e.preventDefault();
40 + $whiteLabelModal.addClass('merchant-show').attr('aria-hidden', 'false');
41 + };
42 + var closeWhiteLabelModal = function closeWhiteLabelModal() {
43 + $whiteLabelModal.removeClass('merchant-show').attr('aria-hidden', 'true');
44 + };
45 + $(document).on('click', '.merchant-white-label-field', function (e) {
46 + if ($(e.target).closest('a, .merchant-white-label-recheck').length) {
47 + return;
48 + }
49 + openWhiteLabelModal(e);
50 + });
51 + $whiteLabelModal.on('click', '.merchant-white-label-modal-close', closeWhiteLabelModal);
52 + $whiteLabelModal.on('click', function (e) {
53 + if (e.target === this) {
54 + closeWhiteLabelModal();
55 + }
56 + });
57 + $(document).on('keyup', function (e) {
58 + if ('Escape' === e.key) {
59 + closeWhiteLabelModal();
60 + }
61 + });
62 + }
34 63 });
35 64 })(jQuery, window, document);