summaryrefslogtreecommitdiff
path: root/resources/views/modals
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2024-12-01 22:01:40 +0000
committerGreg Roach <greg@subaqua.co.uk>2024-12-01 22:01:40 +0000
commit84df132eb594bd1f03ef79ff0165413b0cea7647 (patch)
treef5cc71bd98d65eb12d3bcd246664fabdd8892eb5 /resources/views/modals
parent14de652c0a4640a9c580ad9aea4c8f5de88e43f7 (diff)
downloadwebtrees-84df132eb594bd1f03ef79ff0165413b0cea7647.tar.gz
webtrees-84df132eb594bd1f03ef79ff0165413b0cea7647.tar.bz2
webtrees-84df132eb594bd1f03ef79ff0165413b0cea7647.zip
Fix: #5062 - don't close modals when clicking on the backdrop
Diffstat (limited to 'resources/views/modals')
-rw-r--r--resources/views/modals/ajax.phtml2
-rw-r--r--resources/views/modals/create-media-from-file.phtml2
-rw-r--r--resources/views/modals/shares.phtml2
3 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/modals/ajax.phtml b/resources/views/modals/ajax.phtml
index be58ba5d6e..db6fc70284 100644
--- a/resources/views/modals/ajax.phtml
+++ b/resources/views/modals/ajax.phtml
@@ -1,5 +1,5 @@
<!-- A dynamic modal, with content loaded using AJAX. -->
-<div class="modal fade" id="wt-ajax-modal" tabindex="-1" role="dialog" aria-labelledBy="wt-ajax-modal-title" aria-hidden="true">
+<div class="modal fade" data-bs-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true" id="wt-ajax-modal" aria-labelledBy="wt-ajax-modal-title">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div id="wt-ajax-modal-title"></div>
diff --git a/resources/views/modals/create-media-from-file.phtml b/resources/views/modals/create-media-from-file.phtml
index 3362594292..993198a85e 100644
--- a/resources/views/modals/create-media-from-file.phtml
+++ b/resources/views/modals/create-media-from-file.phtml
@@ -10,7 +10,7 @@ use Fisharebest\Webtrees\I18N;
*/
?>
-<div class="modal" id="modal-create-media-from-file">
+<div class="modal fade" data-bs-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true" id="modal-create-media-from-file">
<form method="post" action="<?= e(route(CreateMediaObjectFromFile::class)) ?>" id="modal-create-media-from-file-form">
<input type="hidden" name="action" value="create-media-object-from-file">
<input type="hidden" name="tree" id="tree" value="">
diff --git a/resources/views/modals/shares.phtml b/resources/views/modals/shares.phtml
index 16bfaf1a8e..926affd192 100644
--- a/resources/views/modals/shares.phtml
+++ b/resources/views/modals/shares.phtml
@@ -10,7 +10,7 @@ use Illuminate\Support\Collection;
*/
?>
-<div class="modal fade" id="wt-shares-modal" tabindex="-1" role="dialog" aria-label="<?= e($title) ?>" aria-hidden="true">
+<div class="modal fade" data-bs-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true" id="wt-shares-modal" aria-label="<?= e($title) ?>">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<?= view('modals/header', ['title' => $title]) ?>