Skip to content

Commit 7d081fb

Browse files
author
WooCommerce
committed
Updates to 7.8.2
1 parent 9932a57 commit 7d081fb

31 files changed

+417
-173
lines changed

assets/js/admin/admin.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,30 +1061,38 @@ jQuery( function ( $ ) {
10611061
}
10621062

10631063
var $giftingEnableCheckbox = $(
1064-
document.getElementById( 'woocommerce_subscriptions_gifting_enable_gifting' )
1065-
),
1066-
$giftingRadios = $(
1067-
'.wc-settings-row-gifting-radios'
1068-
);
1064+
document.getElementById(
1065+
'woocommerce_subscriptions_gifting_enable_gifting'
1066+
)
1067+
),
1068+
$giftingRadios = $( '.wc-settings-row-gifting-radios' ),
1069+
$giftingCheckboxText = $( '.wc-settings-row-gifting-checkbox-text' ),
1070+
$giftingDownloadableProducts = $(
1071+
'.wc-settings-row-gifting-downloadable-products'
1072+
);
10691073

10701074
if ( $giftingEnableCheckbox.length > 0 ) {
10711075
function toggleGiftingCheckbox( checked ) {
10721076
if ( checked ) {
10731077
$giftingRadios.show();
1078+
$giftingCheckboxText.show();
1079+
$giftingDownloadableProducts.show();
10741080
$giftingEnableCheckbox.closest( 'tr' ).addClass( 'checked' );
10751081

10761082
return;
10771083
}
10781084

10791085
$giftingRadios.hide();
1086+
$giftingCheckboxText.hide();
1087+
$giftingDownloadableProducts.hide();
10801088
$giftingEnableCheckbox.closest( 'tr' ).removeClass( 'checked' );
10811089
}
10821090

1083-
$giftingEnableCheckbox.on( 'change', function() {
1091+
$giftingEnableCheckbox.on( 'change', function () {
10841092
toggleGiftingCheckbox( this.checked );
10851093
} );
10861094

1087-
toggleGiftingCheckbox( $giftingEnableCheckbox.is(':checked') );
1095+
toggleGiftingCheckbox( $giftingEnableCheckbox.is( ':checked' ) );
10881096
}
10891097

10901098
// Don't display the variation notice for variable subscription products

build/gifting-blocks-checkout-rtl.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wc-blocks-checkout', 'wp-components', 'wp-data', 'wp-i18n', 'wp-plugins', 'wp-url'), 'version' => 'a0b59d802da6d44a20b3');

build/gifting-blocks-checkout.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/gifting-blocks-checkout.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9aad572306bb946ded22');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'b52cf873a54e347c8f9e');

0 commit comments

Comments
 (0)