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;
|
return true;
|
||||||
};
|
};
|
||||||
|
$(function() {
|
||||||
$(document).ready(() => {
|
|
||||||
const productLineInCartSelector = prestashop.themeSelectors.cart.productLineQty;
|
const productLineInCartSelector = prestashop.themeSelectors.cart.productLineQty;
|
||||||
const promises = [];
|
const promises = [];
|
||||||
|
|
||||||
prestashop.on('updateCart', () => {
|
|
||||||
$(prestashop.themeSelectors.cart.quickview).modal('hide');
|
|
||||||
});
|
|
||||||
|
|
||||||
prestashop.on('updatedCart', () => {
|
prestashop.on('updatedCart', () => {
|
||||||
window.shouldPreventModal = false;
|
window.shouldPreventModal = false;
|
||||||
|
|
||||||
|
@ -371,4 +366,4 @@ $(document).ready(() => {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
|
Loading…
Reference in New Issue