PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.1.26
ووسلام – همگام سازی ووکامرس و باسلام v1.1.26
1.10.29 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 All 62 releases
← All changes | assets/js/finance-history-pagination.js +8 -0 1.10.21 → 1.1.26 View file →
@@ -65,8 +65,13 @@
65 65 },
66 66 body: body.toString()
67 67 })
68 68 .then(function (response) {
69 + if (response.status === 403) {
70 + window.syncBasalamFinanceLock();
71 + throw new Error(config.errorMessage);
72 + }
73 +
69 74 if (!response.ok) {
70 75 throw new Error(config.errorMessage);
71 76 }
72 77
@@ -87,8 +92,11 @@
87 92 updateUrl(nextSection, nextSection.dataset.historyPage || payload.data.historyPage || historyPage);
88 93 })
89 94 .catch(function (error) {
90 95 setLoadingState(section, false);
96 + if (document.querySelector('.basalam-finance-page.is-locked')) {
97 + return;
98 + }
91 99 window.alert(error.message || config.errorMessage);
92 100 });
93 101 });
94 102 }());