Do not close modals when clicking on the background

Fixes #5288
This commit is contained in:
Frédéric Guillot
2023-10-15 13:49:03 -07:00
committed by Frédéric Guillot
parent 0adc73d583
commit b212dd1c7d
4 changed files with 12 additions and 12 deletions

View File

@@ -8,19 +8,19 @@
}
KB.onClick('.js-modal-large', function (e) {
KB.modal.open(getLink(e), 'large', true);
KB.modal.open(getLink(e), 'large', false);
});
KB.onClick('.js-modal-medium', function (e) {
if (KB.modal.isOpen()) {
KB.modal.replace(getLink(e));
} else {
KB.modal.open(getLink(e), 'medium', true);
KB.modal.open(getLink(e), 'medium', false);
}
});
KB.onClick('.js-modal-small', function (e) {
KB.modal.open(getLink(e), 'small', true);
KB.modal.open(getLink(e), 'small', false);
});
KB.onClick('.js-modal-confirm', function (e) {