diff --git a/src/api/wishlists.php b/src/api/wishlists.php index 9090a22f..a4f3227b 100644 --- a/src/api/wishlists.php +++ b/src/api/wishlists.php @@ -1,7 +1,7 @@ */ diff --git a/src/assets/js/parts/wishlist-filter.js b/src/assets/js/parts/wishlist-filter.js index 8db79782..9a50d1af 100644 --- a/src/assets/js/parts/wishlist-filter.js +++ b/src/assets/js/parts/wishlist-filter.js @@ -9,8 +9,8 @@ $(function () { fullTextSearch : true, }) .api({ - 'action' : 'get wishlists by priority', - beforeSend : function (settings) { + '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) { @@ -23,7 +23,7 @@ $(function () { return settings; }, - onSuccess : function (response, dropdown_wishlists, xhr) { + 'onSuccess' : function (response, dropdown_wishlists, xhr) { var html = response.results ? response.results : ''; $('.wishlist-cards').html(html); diff --git a/src/assets/js/parts/wishlists.js b/src/assets/js/parts/wishlists.js index dcaf81d7..9fc4fe18 100644 --- a/src/assets/js/parts/wishlists.js +++ b/src/assets/js/parts/wishlists.js @@ -15,8 +15,8 @@ $(function () { */ var wishlists = []; var wishlists_api = { - 'action' : 'get wishlists', - onSuccess : function(response, dropdown_wishlists, xhr) { + 'action' : 'get wishlists', + 'onSuccess' : function(response, dropdown_wishlists, xhr) { /** Save response for later use */ wishlists = response.results;