1/** Copyright 2018 Sakis Gkiokas 2 * 3 * This file is part of codwfeeplus module for Prestashop. 4 * 5 * Codwfeeplus is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Codwfeeplus is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * For any recommendations and/or suggestions please contact me 16 * at [email protected] 17 * 18 * @author Sakis Gkiokas <[email protected]> 19 * @copyright 2018 Sakis Gkiokas 20 * @license https://opensource.org/licenses/GPL-3.0 GNU General Public License version 3 21 */ 22$(document).ready(function () { 23 24 if (codwfeeplus_is17) { 25 if ($('body#cart').length) { 26 $('a[data-link-action="delete-from-cart"][data-id-product="' + codwfeeplus_codproductid + '"]').trigger("click"); 27 } 28 } else { 29 if ($('body#order-opc').length || $('body#order').length) { 30 $('a.cart_quantity_delete[id^="' + codwfeeplus_codproductid + '_"]').trigger("click"); 31 } 32 } 33});
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.