PageSourceSearch

https://radioandelectronicsupply.com.au/wp-content/plugins/wishlis…/assets/js/wishlist_js.js?ver=1.0.0

js radioandelectronicsupply.com.au collected 2026-10-08 10:44:30 UTC 2,302 bytes, 67 lines download raw bytes

1jQuery(document).ready(function($) {
2    $('.xoo-dialog-close').on('click', function() {
3        $('.xoo-wishlist-dialog').slideUp('slow');
4    })
5
6    function xoo_ajax_add_wishlist(product_id){
7        $.ajax({
8                url: xoo_data.adminurl,
9                type: 'POST',
10                data: {
11                    action: 'wishlist_cookie',
12                    xoo_product_id: product_id
13                },
14            })
15    }
16    function xoo_ajax_remove_wishlist(product_id){
17         $.ajax({
18                url: xoo_data.adminurl,
19                type: 'POST',
20                data: {
21                    action: 'wishlist_cookie',
22                    xoo_remove_id: product_id
23                },
24            })
25    }
26
27    $("#xoo-wishlist-" + xoo_data.button_id).addClass("active");
28
29    $('.xoo_wishlist_add').on('click', function() {
30        var toggle = $(this).hasClass('active');
31        var product_id = $(this).attr('post-id');
32        if (toggle == false) {
33            $(this).addClass('active');
34            xoo_ajax_add_wishlist(product_id);
35            $('.xoo-wishlist-dialog').slideDown();
36            toggle = true;
37        }
38         else if (toggle == true) {
39            $(this).removeClass('active');
40           xoo_ajax_remove_wishlist(product_id);
41            toggle = false;
42        }
43    })
44
45    $('.xoo_wishlist_remove').on('click', function() {
46        var product_id = $(this).attr('remove-id');
47        var parent_height = $(this).parent().height();
48        if ($(this).hasClass('xoo-wishlist-undo')) {
49            $(this).siblings().fadeIn();
50            xoo_ajax_add_wishlist(product_id);
51            $(this).removeClass('xoo-wishlist-undo');
52
53            $(this).children().remove();
54            $(this).addClass('icon-cross xoo-wishlist-remove-cross');
55             
56        } else {
57            $(this).siblings().fadeOut('fast');
58           
59            $(this).parent().css('height',parent_height);
60            $(this).addClass('xoo-wishlist-undo');
61            $('.xoo-wishlist-undo').css('top',parent_height/3);
62            $(this).removeClass('icon-cross xoo-wishlist-remove-cross');
63            $(this).html('<div class ="xoo-wishlist-undo-icon icon-undo"><br>Undo?</div>');
64            xoo_ajax_remove_wishlist(product_id);
65        }
66    })
67})

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.