PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.28
ووسلام – همگام سازی ووکامرس و باسلام v1.10.28
1.10.28 1.1.26 1.10.27 1.10.24 1.10.25 1.10.23 1.10.22 1.10.21 1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 All 61 releases
← All changes | assets/js/check-sync.js +24 -0 1.10.19 → 1.10.28 View file →
@@ -7,12 +7,36 @@
7 7 const $dropdown = $wrapper.find(".basalam-orders-fetch-dropdown");
8 8 $dropdown.toggle();
9 9 });
10 10
11 + // Toggle product synchronization options from the split-button arrow.
12 + $(document).on("click", ".basalam-product-sync-arrow-btn", function (e) {
13 + e.preventDefault();
14 + e.stopPropagation();
15 +
16 + const $btn = $(this);
17 + const $wrapper = $btn.closest(".basalam-product-sync-wrapper");
18 + const $dropdown = $wrapper.find(".basalam-product-sync-dropdown");
19 + const isOpen = $dropdown.is(":visible");
20 +
21 + $(".basalam-product-sync-dropdown").hide();
22 + $(".basalam-product-sync-arrow-btn").attr("aria-expanded", "false");
23 +
24 + if (!isOpen) {
25 + $dropdown.show();
26 + $btn.attr("aria-expanded", "true");
27 + }
28 + });
29 +
11 30 // Close dropdown when clicking outside
12 31 $(document).on("click", function (e) {
13 32 if (!$(e.target).closest(".basalam-orders-fetch-wrapper").length) {
14 33 $(".basalam-orders-fetch-dropdown").hide();
34 + }
35 +
36 + if (!$(e.target).closest(".basalam-product-sync-wrapper").length) {
37 + $(".basalam-product-sync-dropdown").hide();
38 + $(".basalam-product-sync-arrow-btn").attr("aria-expanded", "false");
15 39 }
16 40 });
17 41
18 42 // Fetch orders with default 7 days