PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.2.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.2.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | assets/js/admin.js +6 -12 trunk → 2.2.0 View file →
@@ -90,15 +90,15 @@
90 90 var action2 = jQuery('[name="action2"]').val();
91 91 var selectedAction = action && action !== "-1" ? action : action2;
92 92
93 93 if (!selectedAction || selectedAction === "-1") {
94 - alert(wp.i18n.__("Please select a bulk action.", "subscription"));
94 + alert("Please select a bulk action.");
95 95 return false;
96 96 }
97 97
98 98 var checkedBoxes = jQuery('input[name="subscription_ids[]"]:checked');
99 99 if (checkedBoxes.length === 0) {
100 - alert(wp.i18n.__("Please select at least one subscription.", "subscription"));
100 + alert("Please select at least one subscription.");
101 101 return false;
102 102 }
103 103
104 104 // Handle bulk action via AJAX (confirm already handled by adv-select data-confirm)
@@ -114,9 +114,9 @@
114 114
115 115 // Show loading state
116 116 var submitButton = jQuery('input[name="bulk_action"]:focus, input[name="bulk_action2"]:focus');
117 117 var originalText = submitButton.val();
118 - submitButton.val(wp.i18n.__("Processing…", "subscription")).prop("disabled", true);
118 + submitButton.val("Processing...").prop("disabled", true);
119 119
120 120 // Make AJAX request
121 121 jQuery.ajax({
122 122 url: wp_subscription_ajax.ajaxurl,
@@ -136,16 +136,13 @@
136 136 window.location.reload();
137 137 }, 1000);
138 138 } else {
139 139 // Show error message
140 - showAdminNotice(
141 - response.data.message || wp.i18n.__("An error occurred while processing the bulk action.", "subscription"),
142 - "error",
143 - );
140 + showAdminNotice(response.data.message || "An error occurred while processing the bulk action.", "error");
144 141 }
145 142 },
146 143 error: function () {
147 - showAdminNotice(wp.i18n.__("An error occurred while processing the bulk action.", "subscription"), "error");
144 + showAdminNotice("An error occurred while processing the bulk action.", "error");
148 145 },
149 146 complete: function () {
150 147 // Reset button state
151 148 submitButton.val(originalText).prop("disabled", false);
@@ -187,12 +184,9 @@
187 184 "simple" !== subscrpt_product_type.val() &&
188 185 "variable" !== subscrpt_product_type.val()
189 186 ) {
190 187 const confirmTypeChange = confirm(
191 - wp.i18n.__(
192 - "Are you sure you want to change the product type? Its subscriptions can no longer be renewed.",
193 - "subscription",
194 - ),
188 + "Are you sure to change the product type ? If product type changed then You'll lose related subscriptions beacuse of they can't be renewed !",
195 189 );
196 190 if (confirmTypeChange) {
197 191 latest_value_of_subscrpt_product_type = subscrpt_product_type.val();
198 192 } else {