When opening the export modal, limit selection to inside the modal. Generally when opening modals disable selection.

When selecting a DN on a DN fragment, autoselect the whole DN.
This commit is contained in:
Deon George 2025-04-27 09:12:21 +10:00
parent 3604f1498c
commit 36f8f57b77
4 changed files with 12 additions and 2 deletions

View File

@ -253,3 +253,8 @@ select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
border-color: var(--bs-btn-bg);
}
/* limit selection to inside the modal */
body.modal-open {
user-select: none;
}

View File

@ -3,7 +3,7 @@
<td class="p-1 pt-0" rowspan="2">
{!! ($x=$o->getObject('jpegphoto')) ? $x->render(FALSE,TRUE) : sprintf('<div class="page-title-icon f32 m-2"><i class="%s"></i></div>',$o->icon() ?? "fas fa-info") !!}
</td>
<td class="text-end align-bottom pb-0 mb-0 pt-2 pe-3 {{ $x ? 'ps-3' : '' }}"><strong>{{ $o->getDn() }}</strong></td>
<td class="text-end align-bottom pb-0 mb-0 pt-2 pe-3 {{ $x ? 'ps-3' : '' }}"><strong class="user-select-all">{{ $o->getDn() }}</strong></td>
</tr>
<tr>
<td class="align-bottom" style="font-size: 55%" colspan="2">

View File

@ -336,6 +336,11 @@
}
});
$('#page-modal').on('hide.bs.modal',function() {
// Clear any select ranges that occurred while the modal was open
document.getSelection().removeAllRanges();
});
@if(old())
editmode();
@endif

View File

@ -5,7 +5,7 @@
</div>
<div class="modal-body">
<div id="entry_export"></div>
<div id="entry_export" style="user-select: text;"></div>
</div>
<div class="modal-footer">