Replace modal contents if already open to avoid window flickering
This commit is contained in:
6
assets/js/app.min.js
vendored
6
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -12,7 +12,11 @@
|
||||
});
|
||||
|
||||
KB.onClick('.js-modal-medium', function (e) {
|
||||
KB.modal.open(getLink(e), 'medium', false);
|
||||
if (KB.modal.isOpen()) {
|
||||
KB.modal.replace(getLink(e));
|
||||
} else {
|
||||
KB.modal.open(getLink(e), 'medium', false);
|
||||
}
|
||||
});
|
||||
|
||||
KB.onClick('.js-modal-small', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user