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:
commit
4487b3fa9a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue