From 1c3c11b75c3a1f952724535ace185799ace6cc63 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 24 Nov 2022 13:35:29 +0100 Subject: [PATCH] Refactor --- src/api/wishlists.php | 2 +- src/assets/js/parts/wishlist-filter.js | 6 +++--- src/assets/js/parts/wishlists.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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;