mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21: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({
|
modal = bootbox.dialog({
|
||||||
title: '[[modules:chat.rename-room]]',
|
title: '[[modules:chat.rename-room]]',
|
||||||
message: html,
|
message: html,
|
||||||
|
onEscape: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
save: {
|
save: {
|
||||||
label: '[[global:save]]',
|
label: '[[global:save]]',
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ define('forum/chats/create', [
|
|||||||
const modal = bootbox.dialog({
|
const modal = bootbox.dialog({
|
||||||
title: '[[modules:chat.create-room]]',
|
title: '[[modules:chat.create-room]]',
|
||||||
message: html,
|
message: html,
|
||||||
|
onEscape: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
save: {
|
save: {
|
||||||
label: '[[global:create]]',
|
label: '[[global:create]]',
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ define('forum/chats/manage', [
|
|||||||
modal = bootbox.dialog({
|
modal = bootbox.dialog({
|
||||||
title: '[[modules:chat.manage-room]]',
|
title: '[[modules:chat.manage-room]]',
|
||||||
message: html,
|
message: html,
|
||||||
|
onEscape: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
modal.attr('component', 'chat/manage-modal');
|
modal.attr('component', 'chat/manage-modal');
|
||||||
|
|||||||
Reference in New Issue
Block a user