parent
cbc143e021
commit
36ce76434a
|
@ -36,17 +36,23 @@ jQuery( function( $ ) {
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$( '.wc-wizard-services' ).on( 'click', '.wc-wizard-service-enable', function( e ) {
|
$( '.wc-wizard-services' ).on( 'click', '.wc-wizard-service-enable', function( e ) {
|
||||||
e.stopPropagation();
|
var eventTarget = $( e.target );
|
||||||
|
|
||||||
|
if ( eventTarget.is( 'input' ) ) {
|
||||||
|
e.stopPropagation();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var $checkbox = $( this ).find( 'input[type="checkbox"]' );
|
||||||
|
|
||||||
var $checkbox = $( this ).find( '.wc-wizard-service-toggle input' );
|
|
||||||
$checkbox.prop( 'checked', ! $checkbox.prop( 'checked' ) ).change();
|
$checkbox.prop( 'checked', ! $checkbox.prop( 'checked' ) ).change();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$( '.wc-wizard-services-list-toggle' ).on( 'change', '.wc-wizard-service-enable input', function() {
|
$( '.wc-wizard-services-list-toggle' ).on( 'change', '.wc-wizard-service-enable input', function() {
|
||||||
$( this ).closest( '.wc-wizard-services-list-toggle' ).toggleClass( 'closed' );
|
$( this ).closest( '.wc-wizard-services-list-toggle' ).toggleClass( 'closed' );
|
||||||
$( this ).closest( '.wc-wizard-services' ).find( '.wc-wizard-service-item' )
|
$( this ).closest( '.wc-wizard-services' ).find( '.wc-wizard-service-item' )
|
||||||
.slideToggle()
|
.slideToggle()
|
||||||
.css( 'display', 'flex' );
|
.css( 'display', 'flex' );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-select .method', function( e ) {
|
$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-select .method', function( e ) {
|
||||||
|
|
Loading…
Reference in New Issue