1$(document).ready(function () { 2 $(".toggle-wishlist").click(function (e) { 3 var product_id = $(e.target).data("product-id") 4 var data = { 5 product_id: product_id 6 } 7 var wishlist_action = $(e.target).hasClass("selected") ? "remove_from_wishlist" : "add_to_wishlist" 8 if (product_id) { 9 psLoad("", wishlist_action, data).then(function () { 10 $(e.target).toggleClass("selected") 11 }) 12 } 13 }); 14})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.