This commit is contained in:
grandeljay 2022-11-24 13:35:29 +01:00
parent 4a37b49e94
commit 1c3c11b75c
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<?php
/**
* wishlists.php
* Wishlists
*
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/

View file

@ -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);

View file

@ -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;