PageSourceSearch

https://www.parafarmaciabosciaclub.it/modules/bestkit_emailcart/vi…?v=7c590f01490190db0ed02a5070e20f01

js parafarmaciabosciaclub.it collected 2026-10-10 01:23:28 UTC 2,301 bytes, 74 lines download raw bytes

1var bestkitEmailCart = {
2    init: function () {
3		// $('.cart-detailed-actions a.btn').before($('#send_my_cart'));
4	
5        $('#send_my_cart').fancybox({
6            type: 'ajax',
7            ajax: {
8                type: "POST",
9            }
10        });
11        //$('#emailcart_form').live('submit', function(){
12        $(document).on( "click", "#submit_cart", function() { //emailcart_form
13            $.ajax({
14                type: $('#emailcart_form').attr('method'),
15                url: $('#emailcart_form').attr('action'),
16                data: $('#emailcart_form').serialize(),
17                dataType: 'json',
18                beforeSend: function( xhr ) {
19                    //$('#submit_cart').hide();
20                    $('#submit_cart').attr('disabled', 'disabled');
21                    $('#submit_cart').addClass('disabled');
22                }
23            }).done(function(data) {
24                //$.fancybox.close();
25
26                if (typeof(data.success) != 'undefined') {
27					bestkitEmailCart.displaySuccess(data.success);
28				} else if (typeof(data.error) != 'undefined') {
29					bestkitEmailCart.displayError(data.error);
30				}
31            }).fail(function(data) {
32                bestkitEmailCart.displayError(data.error);
33            });
34
35            return false;
36        });
37
38        $(".email-cart-wrapper .email-cart-button").click(function () {
39            $(this).parent().toggleClass("open");
40        });
41        $(document).click(function(event) {
42            if ($(event.target).closest(".email-cart-wrapper .email-cart-button, .email-cart-wrapper .emailcart_list").length) return;
43            $(".email-cart-wrapper").removeClass("open");
44            event.stopPropagation();
45        });
46    },
47	
48	displaySuccess: function (msg) {
49		$('#submit_cart')
50			.removeAttr('disabled')
51			.removeClass('disabled');
52		$('#emailcart_msg')
53			.removeClass('alert-success')
54			.removeClass('alert-danger')
55            .addClass('alert-success')
56			.html(msg);
57	},
58	
59	displayError: function (msg) {
60		$('#submit_cart')
61			.removeAttr('disabled')
62			.removeClass('disabled');
63
64		$('#emailcart_msg')
65			.removeClass('alert-success')
66			.removeClass('alert-danger')
67			.addClass('alert-danger')
68			.html(msg);
69	}
70}
71
72$(document).ready(function(){
73    bestkitEmailCart.init();
74})

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.