Запрет закрытия модального окна, кроме кнопки
This commit is contained in:
parent
f4a4830062
commit
357bf6747d
1 changed files with 2 additions and 0 deletions
|
|
@ -378,6 +378,8 @@ const userIsCreator = await isUserChatCreator(user.id, chat.chat.id);
|
|||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const modalsController = new HystModal({
|
||||
linkAttributeName: "data-hystmodal",
|
||||
closeOnOverlay: false,
|
||||
closeOnEsc: false,
|
||||
});
|
||||
if (location.hash === "#chatSettings") {
|
||||
modalsController.open("#settingsModal");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue