fix: allow escape to close chat modals

This commit is contained in:
Barış Soner Uşaklı
2023-07-15 20:04:15 -04:00
parent 35ac434c2c
commit 4c311502a2
3 changed files with 3 additions and 0 deletions

View File

@@ -357,6 +357,7 @@ define('forum/chats', [
modal = bootbox.dialog({
title: '[[modules:chat.rename-room]]',
message: html,
onEscape: true,
buttons: {
save: {
label: '[[global:save]]',

View File

@@ -22,6 +22,7 @@ define('forum/chats/create', [
const modal = bootbox.dialog({
title: '[[modules:chat.create-room]]',
message: html,
onEscape: true,
buttons: {
save: {
label: '[[global:create]]',

View File

@@ -28,6 +28,7 @@ define('forum/chats/manage', [
modal = bootbox.dialog({
title: '[[modules:chat.manage-room]]',
message: html,
onEscape: true,
});
modal.attr('component', 'chat/manage-modal');