Skip to content

Commit

Permalink
fix(checkout): CHECKOUT-4233 Cannot add wishlist with item when logge…
Browse files Browse the repository at this point in the history
…d out
  • Loading branch information
mjhmatt committed Jan 8, 2020
1 parent f14b572 commit d61e491
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions assets/js/theme/wishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,6 @@ export default class WishList extends PageManager {
});
}

wishListHandler() {
$('body').on('click', '[data-wishlist]', event => {
const wishListUrl = event.currentTarget.href;
const modal = defaultModal();

event.preventDefault();

modal.open();

api.getPage(wishListUrl, this.options, (err, content) => {
if (err) {
return modal.updateContent(err);
}

modal.updateContent(content, { wrap: true });

const $wishlistForm = $('.wishlist-form', modal.$content);

this.registerAddWishListValidation($wishlistForm);
});
});
}

onReady() {
const $addWishListForm = $('.wishlist-form');

Expand All @@ -90,6 +67,5 @@ export default class WishList extends PageManager {
}

this.wishlistDeleteConfirm();
this.wishListHandler();
}
}

0 comments on commit d61e491

Please sign in to comment.