PageSourceSearch

https://www.atd-av.com/wp-content/plugins/woo-rfq-for-woocommerce/gpls_assets/js/gpls_woo_rfq.js?ver=43929

js atd-av.com collected 2026-10-06 05:11:25 UTC 5,184 bytes, 181 lines download raw bytes

1
2
3
4jQuery.ajaxSetup({ cache: false });
5
6jQuery(document).ready(function() {
7
8
9    try {
10
11
12
13        jQuery( '.related .woocommerce-Price-amount >*,' +
14            '.related .from >*,' +
15            '.related .price >*,' +
16            '.related .total >*,' +
17            '.related .amount >*,' +
18            '.related  .bundle_price >*').show();
19
20
21        jQuery( '.related .woocommerce-Price-amount >*,' +
22            '.related .from >*,' +
23            '.related .price >*,' +
24            '.related .total >*,' +
25            '.related .amount >*,' +
26            '.related  .bundle_price >*').attr('style','visibility: visible !important;');
27
28
29
30
31
32
33//note
34     //   jQuery( '.single-product div.product form.cart' ).attr('style','visibility: visible !important');
35
36
37
38 ////note
39
40        jQuery( '.qodef--single' ).attr('style','visibility: visible !important');
41
42
43
44        jQuery('.required').attr("required", true);
45
46        jQuery('form.checkout').removeAttr('novalidate');
47        jQuery('.required').attr("required", true);
48
49
50        jQuery('.gpls-woo-rfq_update-rfq-cart_button').on('click', function () {
51
52            jQuery('input[name="gpls-woo-rfq_update"]').val(true);
53            jQuery('input[name="gpls-woo-rfq_checkout"]').val(false);
54
55            //jQuery("#rfqform").rules('remove');
56
57            jQuery('#rfq_fname').attr("required", false);
58            jQuery('#rfq_lname').attr("required", false);
59            jQuery('#rfq_email_customer').attr("required", false);
60
61
62            jQuery('#rfq_fname').removeClass("required");
63            jQuery('#rfq_lname').removeClass("required");
64            jQuery('#rfq_email_customer').removeClass("required");
65
66
67        });
68
69
70        jQuery('.gpls-woo-rfq_checkout_button').on('click', function () {
71
72            jQuery('.required').attr("required", true);
73
74            jQuery('#rfq_fname').attr("required", true);
75            jQuery('#rfq_lname').attr("required", true);
76            jQuery('#rfq_email_customer').attr("required", true);
77
78            jQuery('input[name="gpls-woo-rfq_update"]').val(false);
79            jQuery('input[name="gpls-woo-rfq_checkout"]').val(true);
80
81        });
82
83        jQuery('.rfq_billing_country').on('change', function () {
84
85
86            if (jQuery('#rfq_billing_country').val() !== 'US') {
87                jQuery('#rfq_state_select').val("");
88                jQuery('#rfq_state_select').hide();
89                jQuery('#rfq_state_text').show();
90                jQuery('#rfq_state_select').attr("required", false);
91                jQuery('#rfq_state_text').attr("required", true);
92            } else {
93                jQuery('#rfq_state_text').val("");
94                jQuery('#rfq_state_text').hide();
95                jQuery('#rfq_state_select').show();
96                jQuery('#rfq_state_select').attr("required", true);
97                jQuery('#rfq_state_text').attr("required", false);
98            }
99
100        });
101
102
103        jQuery('.gpls_rfq_set').on('click', function () {
104            var variation_id = jQuery("[name='variation_id']").val();
105            var rfq_product_id = jQuery("[name='add-to-cart']").val();
106
107            jQuery("[name='rfq_product_id']").val(1);
108            jQuery("[name='rfq_id']").val(rfq_product_id);
109        });
110
111        jQuery(".product-quantity").on('change', function () {
112
113
114            jQuery('.shop_table.cart').closest('form').find('input[name="update_cart"]').prop('disabled', false);
115
116        });
117
118
119        jQuery( '.related .woocommerce-Price-amount >*,' +
120            '.related .from >*,' +
121            '.related .price >*,' +
122            '.related .total >*,' +
123            '.related .amount >*,' +
124            '.related  .bundle_price >*').show();
125
126
127        jQuery( '.related .woocommerce-Price-amount >*,' +
128            '.related .from >*,' +
129            '.related .price >*,' +
130            '.related .total >*,' +
131            '.related .amount >*,' +
132            '.related  .bundle_price >*').attr('style','visibility: visible !important;');
133
134
135
136
137    }catch(err){}
138
139} );
140
141jQuery( document ).ready( function() {
142
143
144
145   try {
146
147       // jQuery( '.single_add_to_cart_button' ).show();
148
149       if (jQuery('#rfq_billing_country').val() !== 'US') {
150           jQuery('#rfq_state_select').val("");
151           jQuery('#rfq_state_select').hide();
152           jQuery('#rfq_state_text').show();
153           jQuery('#rfq_state_select').attr("required", false);
154           jQuery('#rfq_state_text').attr("required", true);
155       } else {
156           jQuery('#rfq_state_text').val("");
157           jQuery('#rfq_state_text').hide();
158           jQuery('#rfq_state_select').show();
159           jQuery('#rfq_state_select').attr("required", true);
160           jQuery('#rfq_state_text').attr("required", false);
161       }
162
163       jQuery('form.checkout').on('click', function () {
164           jQuery('form.checkout').removeAttr('novalidate');
165       });
166   }catch(err){}
167
168});
169
170jQuery(".remove_session_files a").click(function (e) {
171    try {
172        e.preventDefault();
173    }catch(err){}
174} );
175
176
177
178
179
180
181

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.