asdasd
This commit is contained in:
@@ -455,6 +455,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (modal.el) {
|
if (modal.el) {
|
||||||
|
modal.el.classList.add('bridge-rte-modal');
|
||||||
const closeBtn = modal.el.querySelector('.gjs-mdl-btn-close');
|
const closeBtn = modal.el.querySelector('.gjs-mdl-btn-close');
|
||||||
if (closeBtn) closeBtn.style.display = 'none';
|
if (closeBtn) closeBtn.style.display = 'none';
|
||||||
const backdrop = modal.el.querySelector('.gjs-mdl-dialog');
|
const backdrop = modal.el.querySelector('.gjs-mdl-dialog');
|
||||||
@@ -464,10 +465,10 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!document.getElementById('bridge-rte-modal-style')) {
|
const styleEl = document.getElementById('bridge-rte-modal-style') || document.createElement('style');
|
||||||
const styleEl = document.createElement('style');
|
|
||||||
styleEl.id = 'bridge-rte-modal-style';
|
styleEl.id = 'bridge-rte-modal-style';
|
||||||
styleEl.textContent = '.gjs-mdl-btn-close{display:none!important;}';
|
styleEl.textContent = '.bridge-rte-modal .gjs-mdl-btn-close{display:none!important;}';
|
||||||
|
if (!styleEl.parentNode) {
|
||||||
document.head.appendChild(styleEl);
|
document.head.appendChild(styleEl);
|
||||||
}
|
}
|
||||||
modal.open();
|
modal.open();
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
: null;
|
: null;
|
||||||
if (closeHit) {
|
if (closeHit) {
|
||||||
allowCloseOnce();
|
allowCloseOnce();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
const container = evt.target && evt.target.closest
|
const container = evt.target && evt.target.closest
|
||||||
? evt.target.closest('.gjs-mdl-container')
|
? evt.target.closest('.gjs-mdl-container')
|
||||||
|
|||||||
Reference in New Issue
Block a user