PageSourceSearch

https://grandesescolhas.com/wp-content/plugins/woocommerce-products-filter/js/html_types/radio.js?ver=3.3.1

js grandesescolhas.com collected 2026-10-02 12:01:08 UTC 3,499 bytes, 82 lines download raw bytes

1"use strict";
2function woof_init_radios() {
3    if (icheck_skin != 'none') {
4        jQuery('.woof_radio_term').iCheck('destroy');
5
6        jQuery('.woof_radio_term').iCheck({
7            radioClass: 'iradio_' + icheck_skin.skin + '-' + icheck_skin.color,      
8        });
9
10        jQuery('.woof_radio_term').off('ifChecked');
11        jQuery('.woof_radio_term').on('ifChecked', function (event) {
12            jQuery(this).attr("checked", true);
13            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');
14            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();
15            jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');
16            var slug = jQuery(this).data('slug');
17            var name = jQuery(this).attr('name');
18            var term_id = jQuery(this).data('term-id');
19            woof_radio_direct_search(term_id, name, slug);
20        });
21        
22        //***
23
24  
25         
26    } else {
27        jQuery('.woof_radio_term').on('change', function (event) {
28            jQuery(this).attr("checked", true);
29            var slug = jQuery(this).data('slug');
30            var name = jQuery(this).attr('name');
31            var term_id = jQuery(this).data('term-id');
32			
33			jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');
34            jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();
35            jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');
36			
37            woof_radio_direct_search(term_id, name, slug);
38        });
39    }
40
41    //***
42
43    jQuery('.woof_radio_term_reset').on('click',function () {
44        woof_radio_direct_search(jQuery(this).data('term-id'), jQuery(this).attr('data-name'), 0);
45        jQuery(this).parents('.woof_list').find('.checked').removeClass('checked');
46        jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');
47        //jQuery(this).remove();
48        jQuery(this).removeClass('woof_radio_term_reset_visible');
49        return false;
50    });
51}
52
53
54function woof_radio_direct_search(term_id, name, slug) {
55
56    jQuery.each(woof_current_values, function (index, value) {
57        if (index == name) {
58            delete woof_current_values[name];
59            return;
60        }
61    });
62
63    if (slug != 0) {
64        woof_current_values[name] = slug;
65        jQuery('a.woof_radio_term_reset_' + term_id).hide();
66        jQuery('woof_radio_term_' + term_id).filter(':checked').parents('li').find('a.woof_radio_term_reset').show();
67        jQuery('woof_radio_term_' + term_id).parents('ul.woof_list').find('label').css({'fontWeight': 'normal'});
68        jQuery('woof_radio_term_' + term_id).filter(':checked').parents('li').find('label.woof_radio_label_' + slug).css({'fontWeight': 'bold'});
69    } else {
70        jQuery('a.woof_radio_term_reset_' + term_id).hide();
71        jQuery('woof_radio_term_' + term_id).attr('checked', false);
72        jQuery('woof_radio_term_' + term_id).parent().removeClass('checked');
73        jQuery('woof_radio_term_' + term_id).parents('ul.woof_list').find('label').css({'fontWeight': 'normal'});
74    }
75
76    woof_ajax_page_num = 1;
77    if (woof_autosubmit) {
78        woof_submit_link(woof_get_submit_link());
79    }
80}
81
82

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.