Auto select Wishlist item
This commit is contained in:
parent
0cc10da186
commit
368f75f025
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue