Better event name

This commit is contained in:
paul sealock 2023-12-08 15:39:14 +13:00
parent cbe376088c
commit f47816b3e6
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@
this.closeButton( e, true );
},
backButton: function( e ) {
$( document.body ).trigger( 'wc_backbone_modal_response_back', [ this._target, this.getFormData() ] );
$( document.body ).trigger( 'wc_backbone_modal_back_response', [ this._target, this.getFormData() ] );
this.closeButton( e, false );
},
nextButton: function( e ) {

View File

@ -103,7 +103,7 @@
$( document.body ).on( 'wc_region_picker_update', this.onUpdateZoneRegionPicker );
$( document.body ).on( 'wc_backbone_modal_next_response', this.onAddShippingMethodSubmitted );
$( document.body ).on( 'wc_backbone_modal_before_remove', this.onCloseConfigureShippingMethod );
$( document.body ).on( 'wc_backbone_modal_response_back', this.onConfigureShippingMethodBack );
$( document.body ).on( 'wc_backbone_modal_back_response', this.onConfigureShippingMethodBack );
$( document.body ).on( 'change', '.wc-shipping-zone-method-selector select', this.onChangeShippingMethodSelector );
$( document.body ).on( 'click', '.wc-shipping-zone-postcodes-toggle', this.onTogglePostcodes );
$( document.body ).on( 'wc_backbone_modal_validation', { view: this }, this.validateFormArguments );