Skip to content

Commit

Permalink
prevent unintended js handling when checkout-component is invisible
Browse files Browse the repository at this point in the history
  • Loading branch information
netzkollektiv committed Sep 29, 2022
1 parent 85bee31 commit b25ec11
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
5 changes: 5 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

2.0.1
-----

- behebt einen Fehler im Checkout, bei dem eine Bestellung unter bestimmten Umständen nicht abgesendet werden kann

2.0.0
-----

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = u''
# The full version, including alpha/beta/rc tags
release = u'1.7.1'
release = u'2.0.1'

# -- General configuration ---------------------------------------------------

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jQuery(function($){
});

$('form.checkout').on('checkout_place_order', function() {
if (!$('easycredit-checkout').prop('isActive')
if (!$('easycredit-checkout').is(':visible')
|| !$('easycredit-checkout').prop('isActive')
|| $('easycredit-checkout').prop('paymentPlan') !== ''
|| $('easycredit-checkout').prop('alert') !== ''
) {
Expand Down
4 changes: 4 additions & 0 deletions src/woocommerce-gateway-ratenkaufbyeasycredit/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 2.0.1 =

- behebt einen Fehler im Checkout, bei dem eine Bestellung unter bestimmten Umständen nicht abgesendet werden kann

= 2.0.0 =

- Änderungen zum Markenrelaunch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function enqueue_frontend_resources($hook) {
$this->enqueue_easycredit_components();

wp_enqueue_script('wc_ratenkaufbyeasycredit_js',
$this->plugin_url . 'assets/js/easycredit.min.js', ['jquery'], '1.0');
$this->plugin_url . 'assets/js/easycredit.min.js', ['jquery'], '2.0');
wp_enqueue_style( 'wc_ratenkaufbyeasycredit_css',
$this->plugin_url. 'assets/css/easycredit.min.css');
}
Expand Down
2 changes: 1 addition & 1 deletion src/woocommerce-gateway-ratenkaufbyeasycredit/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tested up to: 6.0.2
Requires PHP: 7.0
WC requires at least: 3.9
WC tested up to: 6.8.2
Stable tag: 2.0.0
Stable tag: 2.0.1
License: MIT
License URI: https://opensource.org/licenses/MIT

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: woocommerce-gateway-ratenkaufbyeasycredit
* Domain Path: /languages
* Version: 2.0.0
* Version: 2.0.1
* Requires at least: 4.4
* Tested up to: 6.0.1
* WC requires at least: 3.0.0
Expand All @@ -20,7 +20,7 @@

defined( 'ABSPATH' ) or exit;

define( 'WC_RATENKAUFBYEASYCREDIT_VERSION', '2.0.0' );
define( 'WC_RATENKAUFBYEASYCREDIT_VERSION', '2.0.1' );
define( 'WC_RATENKAUFBYEASYCREDIT_ID', 'ratenkaufbyeasycredit' );

function wc_ratenkaufbyeasycredit() {
Expand Down

0 comments on commit b25ec11

Please sign in to comment.