PageSourceSearch

https://katheleys.com/wp-content/cache/min/1/wp-content/plugins/so…/assets/js/wishlist.js?ver=1790149395

js katheleys.com collected 2026-09-25 00:18:42 UTC 2,209 bytes, 7 lines download raw bytes

1jQuery(function($){var is_blocked=function($node){return $node.is('.processing')||$node.parents('.processing').length};var block=function($node){if(!is_blocked($node)){$node.addClass('processing').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}})}};var unblock=function($node){$node.removeClass('processing').unblock()};var sooWishlist={init:function(){this.data=soowData||{};$(document.body).on('click','.add-to-wishlist-button',this.add).on('click','.wishlist_table .remove',this.remove).on('removed_from_wishlist',this.updateWishlistButtons).on('removed_from_wishlist',this.updateFragments);this.updateFragments()},add:function(event){var $button=$(event.currentTarget);if($button.hasClass('added')){return!0}
2if(!$button.data('product_id')){return!0}
3event.preventDefault();$button.addClass('loading');$.post(sooWishlist.data.ajaxurl,{action:'soow_add_to_wishlist',product_id:$button.data('product_id')},function(response){if(!response.success){return}
4$button.removeClass('loading').addClass('added');$button.attr('href',sooWishlist.data.wishlisturl);var fragments=response.data.fragments;if(fragments){$.each(fragments,function(element,content){$(element).replaceWith(content)})}
5$(document.body).trigger('added_to_wishlist',[$button,fragments])})},remove:function(event){event.preventDefault();var $button=$(event.currentTarget),$list=$('div.soo-wishlist'),productId=$button.data('product_id');$button.addClass('loading');block($list);$.ajax({type:'GET',url:$button.attr('href'),dataType:'html',success:function(response){var $html=$(response),$newList=$('div.soo-wishlist',$html);if($newList.length){$list.replaceWith($newList.get(0));$(document.body).trigger('removed_from_wishlist',[productId])}}})},updateWishlistButtons:function(event,productId){$('.add-to-wishlist-button[data-product_id="'+productId+'"]').removeClass('added')},updateFragments:function(){$.post(sooWishlist.data.ajaxurl,{action:'soow_update_fragments'},function(response){if(!response.success){return}
6var fragments=response.data;if(fragments){$.each(fragments,function(element,content){$(element).replaceWith(content)})}
7$(document.body).trigger('wishlist_fragments_updated',[fragments])})}};
7sooWishlist.init()})

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.