Fixed Wishlist Alert Issue

This commit is contained in:
Devansh 2021-12-27 13:53:15 +05:30
parent db4dbd4cfa
commit 9de56e11cc
1 changed files with 12 additions and 10 deletions

View File

@ -29,7 +29,7 @@
<a
href="javascript:void(0);"
onclick="deleteAllWishlist()">
onclick="window.deleteAllWishlist()">
{{ __('shop::app.customer.account.wishlist.deleteall') }}
</a>
</div>
@ -131,15 +131,17 @@
window.app.showModal('shareWishlist');
}
/**
* Delete all wishlist.
*/
function deleteAllWishlist() {
if (confirm('{{ __('shop::app.customer.account.wishlist.confirm-delete-all') }}')) document.getElementById('remove-all-wishlist').submit();
return;
}
</script>
@endif
<script>
/**
* Delete all wishlist.
*/
function deleteAllWishlist() {
if (confirm('{{ __('shop::app.customer.account.wishlist.confirm-delete-all') }}')) document.getElementById('remove-all-wishlist').submit();
return;
}
</script>
@endpush