forked from brooksbingham/theme-elegance
refactor: remove code which hides the quickview modal
its ok to remove this since we don't use quickviewpagebuilder
parent
79c48434bc
commit
7f57f035ac
|
@ -95,15 +95,10 @@ const preventCustomModalOpen = (event) => {
|
|||
|
||||
return true;
|
||||
};
|
||||
|
||||
$(document).ready(() => {
|
||||
$(function() {
|
||||
const productLineInCartSelector = prestashop.themeSelectors.cart.productLineQty;
|
||||
const promises = [];
|
||||
|
||||
prestashop.on('updateCart', () => {
|
||||
$(prestashop.themeSelectors.cart.quickview).modal('hide');
|
||||
});
|
||||
|
||||
prestashop.on('updatedCart', () => {
|
||||
window.shouldPreventModal = false;
|
||||
|
||||
|
@ -371,4 +366,4 @@ $(document).ready(() => {
|
|||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue