mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 22:32:03 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { patch } from "@web/core/utils/patch";
|
||||
import { Popup } from "@website/interactions/popup/popup";
|
||||
|
||||
patch(Popup.prototype, {
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
canBtnPrimaryClosePopup(primaryBtnEl) {
|
||||
return (
|
||||
super.canBtnPrimaryClosePopup(...arguments)
|
||||
&& !primaryBtnEl.classList.contains("js_add_cart")
|
||||
);
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue