Skip to content

Commit e46bef8

Browse files
committed
Fix - possible browser compatibility issue
1 parent de8f539 commit e46bef8

File tree

2 files changed

+2
-8
lines changed
  • upload_CE-Phoenix-2341-Frozen/includes/javascript
  • upload_ce_phoenix/includes/javascript

2 files changed

+2
-8
lines changed

upload_CE-Phoenix-2341-Frozen/includes/javascript/paylike.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ function pay(args, checkout, form) {
2929
checkout.checkAllErrors();
3030
} else {
3131
/* Remove form submit event which prevent form action to proceed */
32-
$(form).off('submit', submitForm);
3332
/* Set form action attribute */
34-
$(form).attr("action", $(form).find("#payLikeCheckout").attr("action"));
3533
/* Force submit form */
36-
setTimeout(function(){
37-
$(form).submit();
38-
},10);
34+
$(form).off('submit', submitForm).attr("action", $(form).find("#payLikeCheckout").attr("action")).submit();
3935
}
4036
})
4137
return false;

upload_ce_phoenix/includes/javascript/paylike.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ function pay(args, checkout, form) {
2929
checkout.checkAllErrors();
3030
} else {
3131
/* Remove form submit event which prevent form action to proceed */
32-
$(form).off('submit', submitForm);
3332
/* Set form action attribute */
34-
$(form).attr("action", $(form).find("#payLikeCheckout").attr("action"));
3533
/* Force submit form */
36-
$(form).submit();
34+
$(form).off('submit', submitForm).attr("action", $(form).find("#payLikeCheckout").attr("action")).submit();
3735
}
3836
})
3937
return false;

0 commit comments

Comments
 (0)