PageSourceSearch

https://dance-sklad.ru/wp-content/plugins/woocommerce-products-filter/ext/by_author/js/by_author.js?ver=1.3.6

js dance-sklad.ru collected 2026-10-08 11:13:59 UTC 2,556 bytes, 77 lines download raw bytes

1"use strict";
2
3function woof_init_author() {
4    if (icheck_skin != 'none') {
5        
6        jQuery('.woof_checkbox_author').iCheck('destroy');
7
8        let icheck_selector = '.woof_checkbox_author';
9        let skin = jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin');
10        if (skin) {
11            skin = skin.split('_');
12            jQuery(icheck_selector).iCheck({
13                checkboxClass: 'icheckbox_' + skin[0] + '-' + skin[1]
14            });
15        } else {
16            jQuery(icheck_selector).iCheck({
17                checkboxClass: 'icheckbox_' + icheck_skin.skin + '-' + icheck_skin.color
18            });
19        }
20
21        //+++
22
23        jQuery('.woof_checkbox_author').on('ifChecked', function (event) {
24            jQuery(this).attr("checked", true);
25
26            woof_current_values.woof_author = get_current_checked();
27            woof_ajax_page_num = 1;
28            if (woof_autosubmit) {
29                woof_submit_link(woof_get_submit_link());
30            }
31        });
32
33        jQuery('.woof_checkbox_author').on('ifUnchecked', function (event) {
34            jQuery(this).attr("checked", false);
35            jQuery(this).removeAttr("checked");
36            woof_current_values.woof_author = get_current_checked();
37            woof_ajax_page_num = 1;
38            if (woof_autosubmit) {
39                woof_submit_link(woof_get_submit_link());
40            }
41        });
42
43    } else {
44        jQuery('.woof_checkbox_author').on('change', function (event) {
45            if (jQuery(this).is(':checked')) {
46                jQuery(this).attr("checked", true);
47                woof_current_values.woof_author = get_current_checked();
48                woof_ajax_page_num = 1;
49                if (woof_autosubmit) {
50                    woof_submit_link(woof_get_submit_link());
51                }
52            } else {
53                jQuery(this).attr("checked", false);
54                woof_current_values.woof_author = get_current_checked();
55                woof_ajax_page_num = 1;
56                if (woof_autosubmit) {
57                    woof_submit_link(woof_get_submit_link());
58                }
59            }
60        });
61    }
62
63
64    function get_current_checked() {
65        var values = [];
66        jQuery('.woof_checkbox_author').each(function (i, el) {
67            if (jQuery(this).attr("checked") == 'checked') {
68                values.push(jQuery(this).val());
69            }
70
71        });
72
73        values = values.filter((v, i, a) => a.indexOf(v) === i);
74        return values.join(',');
75    }
76
77}

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.