1/** 2 * PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-) 3 * 4 * @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/ 5 * @copyright 2010-2020 VEKIA 6 * @license This program is not free software and you can't resell and redistribute it 7 * 8 * CONTACT WITH DEVELOPER http://mypresta.eu 9 * [email protected] 10 */ 11 12$(document).ready(function () { 13 prestashop.on( 14 'updateCart', 15 function (event) { 16 console.log(event); 17 if (typeof event.reason.resp !== 'undefined') { 18 if (typeof event.reason.resp.hasError !== 'undefined') { 19 var errors = ''; 20 for (error in event.reason.resp.errors) { 21 //IE6 bug fix 22 if (error != 'indexOf') 23 errors += "<span class='pga_error_line'>" + $('<div>').html(event.reason.resp.errors[error]).text() + "</span>\n"; 24 } 25 $.fancybox( 26 '<div class="pga_fancy alert alert-warning">' + errors + '</div>', 27 { 28 'autoScale': false, 29 'autoDimensions': false, 30 'transitionIn': 'elastic', 31 'transitionOut': 'elastic', 32 'speedIn': 600, 33 'speedOut': 200, 34 'width': 400 35 } 36 ); 37 } 38 } 39 else if(typeof event.resp !== 'undefined') 40 { 41 if (typeof event.resp.hasError !== 'undefined') { 42 var errors = ''; 43 for (error in event.resp.errors) { 44 //IE6 bug fix 45 if (error != 'indexOf') 46 errors += "<span class='pga_error_line'>" + $('<div>').html(event.resp.errors[error]).text() + "</span>\n"; 47 } 48 $.fancybox( 49 '<div class="pga_fancy alert alert-warning">' + errors + '</div>', 50 { 51 'autoScale': false, 52 'autoDimensions': false, 53 'transitionIn': 'elastic', 54 'transitionOut': 'elastic', 55 'speedIn': 600, 56 'speedOut': 200, 57 'width': 400 58 } 59 ); 60 } 61 } 62 }); 63});
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.