Merge pull request #30015 from sabbir1991/fix/29984

Fix JS console error when add new shipping zone button clicke | #29984
This commit is contained in:
Barry Hughes 2021-06-18 15:08:51 -07:00 committed by GitHub
commit 4487b3fa9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@
$( window ).on( 'beforeunload', { view: this }, this.unloadConfirmation );
$( document.body ).on( 'click', '.wc-shipping-zone-add', { view: this }, this.onAddNewRow );
},
onAddNewRow: function() {
var $link = $( this );
window.location.href = $link.attr( 'href' );
},
block: function() {
$( this.el ).block({
message: null,