PageSourceSearch

https://editoraurutau.com/wp-content/plugins/woocommerce-products-…/by_onsales/js/by_onsales.js?ver=1.3.7.4

js editoraurutau.com collected 2026-09-24 20:41:30 UTC 2,695 bytes, 79 lines download raw bytes

1"use strict";
2function woof_init_onsales() {
3
4    if (icheck_skin != 'none') {
5
6        jQuery('.woof_checkbox_sales').iCheck('destroy');
7
8        let icheck_selector = '.woof_checkbox_sales';
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        jQuery('.woof_checkbox_sales').on('ifChecked', function (event) {
22            jQuery(this).attr("checked", true);
23            woof_current_values.onsales = 'salesonly';
24            woof_ajax_page_num = 1;
25            if (woof_autosubmit) {
26                woof_submit_link(woof_get_submit_link());
27            }
28        });
29
30        jQuery('.woof_checkbox_sales').on('ifUnchecked', function (event) {
31            jQuery(this).attr("checked", false);
32            delete woof_current_values.onsales;
33            woof_ajax_page_num = 1;
34            if (woof_autosubmit) {
35                woof_submit_link(woof_get_submit_link());
36            }
37        });
38
39    } else {
40
41        jQuery('.woof_checkbox_sales').on('change', function (event) {
42            if (jQuery(this).is(':checked')) {
43                jQuery(this).attr("checked", true);
44                woof_current_values.onsales = 'salesonly';
45                woof_ajax_page_num = 1;
46                if (woof_autosubmit) {
47                    woof_submit_link(woof_get_submit_link());
48                }
49            } else {
50                jQuery(this).attr("checked", false);
51                delete woof_current_values.onsales;
52                woof_ajax_page_num = 1;
53                if (woof_autosubmit) {
54                    woof_submit_link(woof_get_submit_link());
55                }
56            }
57        });
58    }
59
60    //+++
61
62    jQuery('.woof_checkbox_sales_as_switcher').on('change', function (event) {
63        if (jQuery(this).is(':checked')) {
64            jQuery(this).attr("checked", true);
65            woof_current_values.onsales = 'salesonly';
66            woof_ajax_page_num = 1;
67            if (woof_autosubmit) {
68                woof_submit_link(woof_get_submit_link());
69            }
70        } else {
71            jQuery(this).attr("checked", false);
72            delete woof_current_values.onsales;
73            woof_ajax_page_num = 1;
74            if (woof_autosubmit) {
75                woof_submit_link(woof_get_submit_link());
76            }
77        }
78    });
79}

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.