Refactor
This commit is contained in:
parent
4a37b49e94
commit
1c3c11b75c
3 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wishlists.php
|
* Wishlists
|
||||||
*
|
*
|
||||||
* @author Jay Trees <github.jay@grandel.anonaddy.me>
|
* @author Jay Trees <github.jay@grandel.anonaddy.me>
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,7 +10,7 @@ $(function () {
|
||||||
})
|
})
|
||||||
.api({
|
.api({
|
||||||
'action' : 'get wishlists by priority',
|
'action' : 'get wishlists by priority',
|
||||||
beforeSend : function (settings) {
|
'beforeSend' : function (settings) {
|
||||||
var wishlist_id = $('.wishlist-cards[data-wishlist]').attr('data-wishlist');
|
var wishlist_id = $('.wishlist-cards[data-wishlist]').attr('data-wishlist');
|
||||||
|
|
||||||
if (undefined === wishthis.$_GET.id && wishlist_id.length > 0) {
|
if (undefined === wishthis.$_GET.id && wishlist_id.length > 0) {
|
||||||
|
@ -23,7 +23,7 @@ $(function () {
|
||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
},
|
},
|
||||||
onSuccess : function (response, dropdown_wishlists, xhr) {
|
'onSuccess' : function (response, dropdown_wishlists, xhr) {
|
||||||
var html = response.results ? response.results : '';
|
var html = response.results ? response.results : '';
|
||||||
|
|
||||||
$('.wishlist-cards').html(html);
|
$('.wishlist-cards').html(html);
|
||||||
|
|
|
@ -16,7 +16,7 @@ $(function () {
|
||||||
var wishlists = [];
|
var wishlists = [];
|
||||||
var wishlists_api = {
|
var wishlists_api = {
|
||||||
'action' : 'get wishlists',
|
'action' : 'get wishlists',
|
||||||
onSuccess : function(response, dropdown_wishlists, xhr) {
|
'onSuccess' : function(response, dropdown_wishlists, xhr) {
|
||||||
/** Save response for later use */
|
/** Save response for later use */
|
||||||
wishlists = response.results;
|
wishlists = response.results;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue