Modified JS function

This commit is contained in:
mehul0810 2017-10-12 08:27:53 +05:30
parent 3e2cf907eb
commit 43713b49c4
1 changed files with 1 additions and 6 deletions

View File

@ -120,11 +120,6 @@ jQuery(function( $ ) {
});
$( '#wpbody' ).on( 'click', '.trash-product', function() {
var confirm_delete = confirm( woocommerce_admin.delete_product_message );
// Stop redirection, if user denies to delete the product.
if ( ! confirm_delete ) {
return false;
}
return window.confirm( woocommerce_admin.i18_delete_product_notice );
});
});