Fix empty shared wishlist

This commit is contained in:
grandeljay 2022-11-23 18:22:19 +01:00
parent be99e947c0
commit ae9f231274

View file

@ -11,6 +11,12 @@ $(function () {
.api({
'action' : 'get wishlists by priority',
beforeSend : function (settings) {
var wishlist_id = $('.wishlist-cards[data-wishlist]').attr('data-wishlist');
if (undefined === wishthis.$_GET.id && wishlist_id.length > 0) {
wishthis.$_GET.id = wishlist_id;
}
settings.urlData.style = $('input[name="style"]').val();
settings.urlData.priority = $('.ui.dropdown.filter.priority').dropdown('get value');
settings.urlData.wishlistid = wishthis.$_GET.id;