fix: closes #11561, close dialogs on escape/backdrop click

This commit is contained in:
Barış Soner Uşaklı
2023-05-03 12:12:00 -04:00
parent 7f19913b9f
commit 0af2b800b3
2 changed files with 4 additions and 0 deletions

View File

@@ -113,6 +113,8 @@ define('forum/topic/votes', [
message: html,
className: 'vote-modal',
show: true,
onEscape: true,
backdrop: true,
});
dialog.on('click', function () {

View File

@@ -55,6 +55,8 @@ define('topicThumbs', [
modal = bootbox.dialog({
title: '[[modules:thumbs.modal.title]]',
message: html,
onEscape: true,
backdrop: true,
buttons: {
add: {
label: '<i class="fa fa-plus"></i> [[modules:thumbs.modal.add]]',