PageSourceSearch

https://bookstop.co.il/wp-content/plugins/woo-discount-rules-pro/Assets/Js/awdr_pro.js?ver=2.6.9

js bookstop.co.il collected 2026-09-25 20:07:28 UTC 1,969 bytes, 51 lines download raw bytes

1/* global jQuery, ajaxurl, wdr_data */
2(function ($) {
3    $(document).ready(function () {
4        $(document).on("click", ".awdr_change_product", function() {
5            var product_id = $(this).attr('data-pid');
6            var rule_unique_id = $(this).attr('data-rule_id');
7            var parent_id = $(this).attr('data-parent_id');
8
9            var data = {
10                action: 'awdr_change_discount_product_in_cart',
11                product_id: product_id,
12                rule_unique_id: rule_unique_id,
13                parent_id: parent_id,
14                awdr_nonce: awdr_params.nonce,
15            };
16            $.ajax({
17                url: awdr_params.ajaxurl,
18                data: data,
19                type: 'POST',
20                success: function (response) {
21                    if(response.success == true){
22                        if(response.data == 1){
23                            jQuery("[name='update_cart']").removeAttr('disabled');
24                            jQuery("[name='update_cart']").trigger("click");
25                        }
26                    }
27                },
28                error: function (response) {
29                }
30            });
31        });
32
33        var acc = document.getElementsByClassName("awdr-select-free-variant-product-toggle");
34        var i;
35
36        //for (i = 0; i < acc.length; i++) {
37        $(document).on("click",'.awdr-select-free-variant-product-toggle' , function (e) {
38                e.preventDefault();
39                this.classList.toggle("awdr-select-free-variant-product-toggle-active");
40                var panel = this.nextElementSibling;
41                if (panel.style.display === "block") {
42                    ///  panel.style.display = "none";
43                    $(panel).slideUp(1000);
44                } else {
45                    $(panel).slideDown(1000);
46                    ///panel.style.display = "block";
47                }
48            });
49        //}
50    });
51})(jQuery);

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.