Fix wishlist not selecting on reload

This commit is contained in:
Jay Trees 2022-01-18 12:16:00 +01:00
parent 6c32ce3415
commit cfdd49bb23

View file

@ -1,9 +1,4 @@
$(function() { $(function() {
/**
* URL Parameter
*/
const urlParams = new URLSearchParams(window.location.search);
/** /**
* Fomantic UI * Fomantic UI
*/ */
@ -20,6 +15,11 @@ $(function() {
}); });
function wishlistRefresh() { function wishlistRefresh() {
/**
* URL Parameter
*/
const urlParams = new URLSearchParams(window.location.search);
$('.ui.dropdown.wishlists').api({ $('.ui.dropdown.wishlists').api({
action: 'get wishlists', action: 'get wishlists',
method: 'GET', method: 'GET',