diff --git a/src/assets/js/wishlists.js b/src/assets/js/wishlists.js index 6aa848f1..4cba2ef0 100644 --- a/src/assets/js/wishlists.js +++ b/src/assets/js/wishlists.js @@ -123,6 +123,10 @@ $(function () { var wish_id = card.data('id'); var refresh = card.find('button.refresh'); + if (!href) { + return; + } + card.addClass('loading'); card.attr('data-cache', true); diff --git a/src/classes/wishlist.php b/src/classes/wishlist.php index 035d4510..bb1f3196 100644 --- a/src/classes/wishlist.php +++ b/src/classes/wishlist.php @@ -88,7 +88,7 @@ class Wishlist get(false); - $exists = $cache->exists() ? 'true' : 'false'; + $exists = $cache->exists() || !$info->url ? 'true' : 'false'; $title = $wish['title'] ?? $info->title; ?>