redirect without removing the events handler

This commit is contained in:
Sabbir Ahmed 2021-06-07 22:43:33 +06:00
parent 4b33e5490f
commit 81fd117b70
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@
$tbody.on( 'change', { view: this }, this.updateModelOnChange ); $tbody.on( 'change', { view: this }, this.updateModelOnChange );
$tbody.on( 'sortupdate', { view: this }, this.updateModelOnSort ); $tbody.on( 'sortupdate', { view: this }, this.updateModelOnSort );
$( window ).on( 'beforeunload', { view: this }, this.unloadConfirmation ); $( 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() { block: function() {
$( this.el ).block({ $( this.el ).block({