PageSourceSearch

https://www.pluscolor.es/modules/dynamicproduct/views/js/front/display-summary.js

js pluscolor.es collected 2026-10-06 09:28:56 UTC 1,697 bytes, 60 lines download raw bytes

1/**
2* 2010-2015 Tuni-Soft - modifié 2/10/2014 13:33
3*
4* NOTICE OF LICENSE
5*
6* This source file is subject to the Academic Free License (AFL 3.0)
7* It is available through the world-wide-web at this URL:
8* http://opensource.org/licenses/afl-3.0.php
9* If you did not receive a copy of the license and are unable to
10* obtain it through the world-wide-web, please send an email
11* to [email protected] so we can send you a copy immediately.
12*
13* DISCLAIMER
14*
15* Do not edit or add to this file if you wish to upgrade this module to newer
16* versions in the future. If you wish to customize the module for your
17* needs please refer to
18* http://doc.prestashop.com/display/PS15/Overriding+default+behaviors
19* for more information.
20*
21* @author    Tunis-Soft
22* @copyright 2010-2017 Tuni-Soft
23* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24*/
25
26var dynamicSummary = {
27
28    selector: '.dp_cart.dp_seven_cart',
29
30    init: function () {
31	    dynamicSummary.handleEvents();
32        dynamicSummary.displaySummary();
33    },
34
35    displaySummary: function () {
36        if (dynamicSummary.summaryExists()) {
37            $(dynamicSummary.selector).each(function () {
38                var summary = $(this);
39                var modal = summary.closest('.customization-modal');
40                var anchor = modal.prev().hide();
41                summary.insertBefore(anchor);
42            });
43        }
44    },
45
46    summaryExists: function () {
47        return $(dynamicSummary.selector).length > 0;
48    },
49
50    handleEvents: function () {
51	    prestashop.on('updatedCart', dynamicSummary.displaySummary);
52    },
53
54    triggerEvents: function () {
55
56    }
57
58};
59
60$(dynamicSummary.init);

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.