diff --git a/includes/assets/js/wishlist-view.js b/includes/assets/js/wishlist-view.js index 10dee88d..cd7b040e 100644 --- a/includes/assets/js/wishlist-view.js +++ b/includes/assets/js/wishlist-view.js @@ -9,10 +9,16 @@ $(function() { if (wishlistValue) { $('.wishlist-view').removeClass('disabled'); + } else { + $('.wishlist-view').addClass('disabled'); + } + + const urlParams = new URLSearchParams(window.location.search); + + if (wishlistValue === urlParams.get('wishlist')) { $('.wishlist-share').removeClass('disabled'); $('.wishlist-delete button').removeClass('disabled'); } else { - $('.wishlist-view').addClass('disabled'); $('.wishlist-share').addClass('disabled'); $('.wishlist-delete button').addClass('disabled'); } diff --git a/includes/pages/wishlist-product-add.php b/includes/pages/wishlist-product-add.php index ffb626b4..1437e237 100644 --- a/includes/pages/wishlist-product-add.php +++ b/includes/pages/wishlist-product-add.php @@ -31,6 +31,7 @@ $page->navigation();
+ diff --git a/includes/pages/wishlist-view.php b/includes/pages/wishlist-view.php index e1f83269..96a5df29 100644 --- a/includes/pages/wishlist-view.php +++ b/includes/pages/wishlist-view.php @@ -60,7 +60,7 @@ if (isset($_POST['wishlist_delete_id'])) {

Options

Wishlist related options.

- + Share @@ -68,7 +68,7 @@ if (isset($_POST['wishlist_delete_id'])) {
-