Auto select Wishlist item

This commit is contained in:
Jay Trees 2022-02-22 10:26:46 +01:00
parent 0cc10da186
commit 368f75f025

View file

@ -169,6 +169,10 @@ function wishlistRefresh() {
if (urlParams.has('wishlist')) {
$('.ui.dropdown.wishlists').dropdown('set selected', urlParams.get('wishlist'));
} else {
if (response.results[0]) {
$('.ui.dropdown.wishlists').dropdown('set selected', response.results[0].value);
}
}
},
onFailure: function(response, element, xhr) {