mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
fix: allow escape to close chat modals
This commit is contained in:
@@ -357,6 +357,7 @@ define('forum/chats', [
|
||||
modal = bootbox.dialog({
|
||||
title: '[[modules:chat.rename-room]]',
|
||||
message: html,
|
||||
onEscape: true,
|
||||
buttons: {
|
||||
save: {
|
||||
label: '[[global:save]]',
|
||||
|
||||
@@ -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]]',
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user