mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-01 12:20:07 +01:00
fix: closes #11561, close dialogs on escape/backdrop click
This commit is contained in:
@@ -113,6 +113,8 @@ define('forum/topic/votes', [
|
|||||||
message: html,
|
message: html,
|
||||||
className: 'vote-modal',
|
className: 'vote-modal',
|
||||||
show: true,
|
show: true,
|
||||||
|
onEscape: true,
|
||||||
|
backdrop: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
dialog.on('click', function () {
|
dialog.on('click', function () {
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ define('topicThumbs', [
|
|||||||
modal = bootbox.dialog({
|
modal = bootbox.dialog({
|
||||||
title: '[[modules:thumbs.modal.title]]',
|
title: '[[modules:thumbs.modal.title]]',
|
||||||
message: html,
|
message: html,
|
||||||
|
onEscape: true,
|
||||||
|
backdrop: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
add: {
|
add: {
|
||||||
label: '<i class="fa fa-plus"></i> [[modules:thumbs.modal.add]]',
|
label: '<i class="fa fa-plus"></i> [[modules:thumbs.modal.add]]',
|
||||||
|
|||||||
Reference in New Issue
Block a user