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

isekai-main
Barış Soner Uşaklı 2 years ago
parent 7f19913b9f
commit 0af2b800b3

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

@ -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]]',

Loading…
Cancel
Save