Replace modal contents if already open to avoid window flickering
This commit is contained in:
parent
2751b200d5
commit
93c05371a8
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue