1/** 2 * Support for PrestaShop 1.7 AJAX product list updates (pagination, facets) 3 */ 4$(document).ready(function() { 5 if (typeof prestashop !== 'undefined') { 6 prestashop.on('updateProductList', function() { 7 // Give a small timeout to let the DOM settle 8 setTimeout(function() { 9 // Re-render Skeepers widgets 10 if (typeof window.SkeepersProductWidget !== 'undefined' && typeof window.SkeepersProductWidget.generate === 'function') { 11 window.SkeepersProductWidget.generate(); 12 } else { 13 // Fallback for other Skeepers versions 14 if (typeof window.skeepersWidgets !== 'undefined' && typeof window.skeepersWidgets.render === 'function') { 15 window.skeepersWidgets.render(); 16 } 17 // Trigger custom event if the script listens to it 18 document.dispatchEvent(new CustomEvent('skeepers:product:widget:render')); 19 } 20 }, 500); // 500ms to be safe with some themes 21 }); 22 } 23});
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.