Skip to content
Snippets Groups Projects
Commit 1dab1dc5 authored by mattwire's avatar mattwire
Browse files

SweetAlert 10/11 compatibility - require SweetAlert extension 1.5

parent 29bae6e5
Branches
Tags
1 merge request!167SweetAlert 10/11 compatibility - require SweetAlert extension 1.5
......@@ -26,7 +26,7 @@ class CRM_Stripe_Check {
* @var string
*/
const MIN_VERSION_MJWSHARED = '1.0';
const MIN_VERSION_SWEETALERT = '1.4.1';
const MIN_VERSION_SWEETALERT = '1.5';
const MIN_VERSION_FIREWALL = '1.1.3';
public static function checkRequirements(&$messages) {
......
......@@ -9,6 +9,10 @@ Releases use the following numbering system:
* **[BC]**: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension.
## Release 6.6.2 (not yet released)
* SweetAlert 10/11 compatibility - require SweetAlert extension 1.5
## Release 6.6.1
* Fix PHP notice when there are no Stripe customers.
......@@ -18,6 +22,7 @@ Releases use the following numbering system:
* Fixes to PaymentRequest button [#313](https://lab.civicrm.org/extensions/stripe/-/issues/313):
* Hide submit buttons when paymentRequest button is active.
* Fix loading of paymentRequest element when multiple payment processors available.
* Fix no payment element loading in browser when no saved cards and paymentRequest is default.
* Fix [#331](https://lab.civicrm.org/extensions/stripe/-/issues/331) The API Stripe.importsubscription returns authorization failed.
## Release 6.6
......
......@@ -233,7 +233,7 @@
swalFire: function(parameters, scrollToElement, fallBackToAlert) {
if (typeof Swal === 'function') {
if (scrollToElement.length > 0) {
parameters.onAfterClose = function() { window.scrollTo($(scrollToElement).position()); };
parameters.didClose = function() { window.scrollTo($(scrollToElement).position()); };
}
Swal.fire(parameters);
}
......@@ -276,8 +276,8 @@
confirm.swalFire({
title: ts('Please wait...'),
allowOutsideClick: false,
onBeforeOpen: function() {
Swal.showLoading();
willOpen: function() {
Swal.showLoading(Swal.getConfirmButton());
}
}, '', false);
......
......@@ -252,8 +252,8 @@
title: ts('Please wait'),
text: ts(' while we pre-authorize your card...'),
allowOutsideClick: false,
onBeforeOpen: function() {
Swal.showLoading();
willOpen: function() {
Swal.showLoading(Swal.getConfirmButton());
}
}, '', false);
CRM.api3('StripePaymentintent', 'Process', {
......@@ -315,8 +315,8 @@
title: ts('Please wait'),
text: ts(' preparing your payment...'),
allowOutsideClick: false,
onBeforeOpen: function() {
Swal.showLoading();
willOpen: function() {
Swal.showLoading(Swal.getConfirmButton());
}
}, '', false);
CRM.api3('StripePaymentintent', 'Process', {
......@@ -1028,7 +1028,7 @@
function swalFire(parameters, scrollToElement, fallBackToAlert) {
if (typeof Swal === 'function') {
if (scrollToElement.length > 0) {
parameters.onAfterClose = function() { window.scrollTo($(scrollToElement).position()); };
parameters.didClose = function() { window.scrollTo($(scrollToElement).position()); };
}
Swal.fire(parameters);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment