PageSourceSearch

https://www.splitboards.eu/engine/Shopware/Plugins/Community/Front…/js/checkout_handler.js?upd=2.4.7

js splitboards.eu collected 2026-10-07 00:37:48 UTC 2,274 bytes, 77 lines download raw bytes

1function dreiscSetConfig_onShowSetArticles(el, sOrderBasketId, scope) {
2    var $el = $(el),
3        showText = $el.attr('data-showtext'),
4        hideText = $el.attr('data-hidetext'),
5        toogled = $el.attr('data-toogled');
6
7    if('true' == $el.attr('data-locked')) {
8        return;
9    }
10
11    $el.attr('data-locked', 'true');
12
13    if('true' == toogled) {
14        var newText = showText;
15        $el.attr('data-toogled', 'false')
16    } else {
17        var newText = hideText;
18        $el.attr('data-toogled', 'true')
19    }
20
21    var checkoutConfig = $('#dreisc--set-config--checkout--config');
22    if(null == checkoutConfig) {
23        dreiscSetConfig_log('Error: missing "dreisc--set-config--checkout--config" container');
24        return;
25    }
26
27    var showSetArticlesUrl = checkoutConfig.attr('data-showsetarticles');
28    if('' == showSetArticlesUrl) {
29        dreiscSetConfig_log('Error: missing "data-showsetarticles" config');
30        return;
31    }
32
33    var setArticlesContainer =  $('#dreisc-set-config--set-articles-' + sOrderBasketId);
34    if(0 == setArticlesContainer.length) {
35        dreiscSetConfig_log('Error: missing "#dreisc-set-config--set-articles-' + sOrderBasketId + '" container');
36        return;
37    }
38
39    dreiscSetConfig_showAjaxLoaderIcon(true);
40
41    if('true' != toogled) {
42        $.ajax({
43            type: "POST",
44            url: showSetArticlesUrl,
45            data: {
46                sOrderBasketId: sOrderBasketId,
47                scope: scope
48            }
49        }).done(function( result ) {
50            if(result != null) {
51                $(setArticlesContainer).html(result);
52                $el.html(newText);
53                dreiscSetConfig_showAjaxLoaderIcon(false);
54                $el.attr('data-locked', 'false');
55            }
56        });
57    } else {
58        $(setArticlesContainer).html('');
59        $el.html(newText);
60        dreiscSetConfig_showAjaxLoaderIcon(false);
61        $el.attr('data-locked', 'false');
62    }
63}
64
65function dreiscSetConfig_showAjaxLoaderIcon(show) {
66    if(true == show) {
67        $('#dreisc--set-config--ajax-loader').show();
68    } else {
69        $('#dreisc--set-config--ajax-loader').hide();
70    }
71}
72
73function dreiscSetConfig_log(msg) {
74    if(null != console) {
75        console.log(msg);
76    }
77}

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.