From 43713b49c44c6578f812cd470fbde76f402c82aa Mon Sep 17 00:00:00 2001 From: mehul0810 Date: Thu, 12 Oct 2017 08:27:53 +0530 Subject: [PATCH] Modified JS function --- assets/js/admin/quick-edit.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/assets/js/admin/quick-edit.js b/assets/js/admin/quick-edit.js index ebd2f879b2d..c8fea5e38cd 100644 --- a/assets/js/admin/quick-edit.js +++ b/assets/js/admin/quick-edit.js @@ -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 ); }); });