PageSourceSearch

https://www.baudelet-materiels.fr/modules/roja45quotationspro/view…/roja45quotationspro_preventcartmods17.js

js baudelet-materiels.fr collected 2026-10-09 21:38:18 UTC 2,146 bytes, 60 lines download raw bytes

1/**
2 * roja45quotationspro_order.js.
3 *
4 * @author    Roja45
5 * @copyright 2016 Roja45
6 * @license   license.txt
7 *
8 * 2016 ROJA45 - All rights reserved.
9 *
10 * DISCLAIMER
11 * Changing this file will render any support provided by us null and void.
12 */
13
14$(document).ready(function () {
15    if (!(typeof roja45quotationspro_cart_modified !== "undefined") && roja45quotationspro_cart_modified) {
16        var here = '';
17    }
18    if (!parseInt(roja45quotationspro_in_cart)) {
19        var quote_button = $('#btn_request_quote');
20        quote_button.css('margin-right', '10px');
21        $('.cart_navigation').append(quote_button);
22        quote_button.fadeIn();
23    } else {
24        if (!roja45quotationspro_allow_modifications) {
25            $('.cart-overview .js-cart-line-product-quantity').attr('disabled', true);
26            $('.cart-overview .js-cart-line-product-quantity .js-increase-product-quantity').hide();
27            $('.cart-overview .js-cart-line-product-quantity .js-decrease-product-quantity').hide();
28            $('.cart-overview a.remove-from-cart').hide();
29        }
30    }
31
32    $('.btn-clear-quote').on('click', function(e) {
33        $.ajax({
34            url: roja45quotationspro_controller,
35            type: 'post',
36            dataType: 'json',
37            data: {
38                'action' : 'clearQuoteFromCart',
39                'ajax' : 1,
40            },
41            beforeSend: function () {
42                //roja45quotationspro.toggleWaitDialog();
43            },
44            success: function (data) {
45                if (data.result) {
46                    //roja45quotationspro.displaySuccessMsg([roja45quotationspro_deleted_success]);
47                    window.location = data.redirect;
48                } else {
49                    //roja45quotationspro.displayErrorMsg([roja45quotationspro_unknown_error]);
50                }
51            },
52            error: function (data) {
53                //roja45quotationspro.displayErrorMsg([roja45quotationspro_sent_failed]);
54            },
55            complete: function (data) {
56                //roja45quotationspro.toggleWaitDialog();
57            }
58        });
59    });
60});

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.