PageSourceSearch

https://pelagic-records.com/wp-content/plugins/woocommerce-product…/ext/by_instock/js/by_instock.js?ver=1.4.4

js pelagic-records.com collected 2026-09-24 19:01:07 UTC 2,362 bytes, 92 lines download raw bytes

1"use strict";
2function woof_init_instock() {
3	if (icheck_skin != 'none') {
4
5		jQuery( '.woof_checkbox_instock' ).iCheck( 'destroy' );
6
7		let icheck_selector = '.woof_checkbox_instock';
8		let skin            = jQuery( icheck_selector ).parents( '.woof_redraw_zone' ).eq( 0 ).data( 'icheck-skin' );
9		if (skin) {
10			skin = skin.split( '_' );
11			jQuery( icheck_selector ).iCheck(
12				{
13					checkboxClass: 'icheckbox_' + skin[0] + '-' + skin[1]
14				}
15			);
16		} else {
17			jQuery( icheck_selector ).iCheck(
18				{
19					checkboxClass: 'icheckbox_' + icheck_skin.skin + '-' + icheck_skin.color
20				}
21			);
22		}
23
24		jQuery( '.woof_checkbox_instock, .woof_checkbox_instock2' ).on(
25			'ifChecked',
26			function (event) {
27				jQuery( this ).attr( "checked", true );
28				woof_current_values.stock = 'instock';
29				woof_ajax_page_num        = 1;
30				if (woof_autosubmit) {
31					woof_submit_link( woof_get_submit_link() );
32				}
33			}
34		);
35
36		jQuery( '.woof_checkbox_instock, .woof_checkbox_instock2' ).on(
37			'ifUnchecked',
38			function (event) {
39				jQuery( this ).attr( "checked", false );
40				delete woof_current_values.stock;
41				woof_ajax_page_num = 1;
42				if (woof_autosubmit) {
43					woof_submit_link( woof_get_submit_link() );
44				}
45			}
46		);
47	} else {
48		jQuery( '.woof_checkbox_instock' ).on(
49			'change',
50			function (event) {
51				if (jQuery( this ).is( ':checked' )) {
52					jQuery( this ).attr( "checked", true );
53					woof_current_values.stock = 'instock';
54					woof_ajax_page_num        = 1;
55					if (woof_autosubmit) {
56						woof_submit_link( woof_get_submit_link() );
57					}
58				} else {
59					jQuery( this ).attr( "checked", false );
60					delete woof_current_values.stock;
61					woof_ajax_page_num = 1;
62					if (woof_autosubmit) {
63						woof_submit_link( woof_get_submit_link() );
64					}
65				}
66			}
67		);
68	}
69
70	// +++
71
72	jQuery( '.woof_checkbox_instock_as_switcher' ).on(
73		'change',
74		function (event) {
75			if (jQuery( this ).is( ':checked' )) {
76				jQuery( this ).attr( "checked", true );
77				woof_current_values.stock = 'instock';
78				woof_ajax_page_num        = 1;
79				if (woof_autosubmit) {
80					woof_submit_link( woof_get_submit_link() );
81				}
82			} else {
83				jQuery( this ).attr( "checked", false );
84				delete woof_current_values.stock;
85				woof_ajax_page_num = 1;
86				if (woof_autosubmit) {
87					woof_submit_link( woof_get_submit_link() );
88				}
89			}
90		}
91	);
92}

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.