This commit is contained in:
Mirco Wittrien 2019-10-09 09:07:04 +02:00
parent 2b1a1310ee
commit 3dfbe226cb
1 changed files with 1 additions and 1 deletions

View File

@ -3241,7 +3241,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
else if (e.which == 27 && backdrop) backdrop.click();
};
document.addEventListener('keydown', keydown);
BDFDB.addChildEventListener(modalwrapper, 'click', BDFDB.dotCNC.backdrop + BDFDB.dotCNC.modalclose + '.btn-close, .btn-save, .btn-send, .btn-cancel, .btn-ok', () => {
BDFDB.addChildEventListener(modalwrapper, 'click', BDFDB.dotCNC.backdrop + BDFDB.dotCNC.modalclose + '.btn-close, .btn-save, .btn-send, .btn-cancel, .btn-ok, .btn-done', () => {
document.removeEventListener('keydown', keydown);
animate(0);
setTimeout(() => {modalwrapper.remove();}, 300);