PageSourceSearch

https://www.assessorianogue.com/wp-content/themes/flatsome/inc/int…/wc-yith-wishlist/wishlist.js?ver=3.4

js assessorianogue.com collected 2026-10-06 09:29:29 UTC 1,620 bytes, 57 lines download raw bytes

1Flatsome.behavior('wishlist', {
2  attach: function (context) {
3    jQuery('.wishlist-button', context).each(function (index, element) {
4      'use strict'
5
6      jQuery(element).on('click', function (e) {
7        if (jQuery(this).parent().find('.yith-wcwl-wishlistexistsbrowse').hasClass('show')) {
8          var link = jQuery(this).parent().find('.yith-wcwl-wishlistexistsbrowse a').attr('href')
9          window.location.href = link
10          return
11        }
12
13        jQuery(this).addClass('loading')
14        jQuery(this).parent().find('.add_to_wishlist').click()
15        e.preventDefault()
16      })
17    })
18  }
19})
20
21jQuery(document).ready(function () {
22  var flatsomeAddToWishlist = function () {
23    jQuery('.wishlist-button').removeClass('loading')
24    jQuery('.wishlist-button').addClass('wishlist-added')
25
26    jQuery.ajax({
27      beforeSend: function () {
28
29      },
30      complete: function () {
31
32      },
33      data: {
34        action: 'flatsome_update_wishlist_count',
35      },
36      success: function (data) {
37        jQuery('i.wishlist-icon').addClass('added')
38        if (data == 0) {
39          jQuery('i.wishlist-icon').removeAttr('data-icon-label')
40        }
41        else if (data == 1) {
42          jQuery('i.wishlist-icon').attr('data-icon-label', '1')
43        }
44        else {
45          jQuery('i.wishlist-icon').attr('data-icon-label', data)
46        }
47        setTimeout(function () {
48          jQuery('i.wishlist-icon').removeClass('added')
49        }, 500)
50      },
51
52      url: yith_wcwl_l10n.ajax_url,
53    })
54  }
55
56  jQuery('body').on('added_to_wishlist removed_from_wishlist', flatsomeAddToWishlist)
57})

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.