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:
parent
3604f1498c
commit
36f8f57b77
5
public/css/fixes.css
vendored
5
public/css/fixes.css
vendored
@ -252,4 +252,9 @@ select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__
|
|||||||
/* Stop showing a border on our user's drop down menu when open */
|
/* Stop showing a border on our user's drop down menu when open */
|
||||||
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
|
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
|
||||||
border-color: var(--bs-btn-bg);
|
border-color: var(--bs-btn-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* limit selection to inside the modal */
|
||||||
|
body.modal-open {
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
@ -3,7 +3,7 @@
|
|||||||
<td class="p-1 pt-0" rowspan="2">
|
<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") !!}
|
{!! ($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>
|
||||||
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="align-bottom" style="font-size: 55%" colspan="2">
|
<td class="align-bottom" style="font-size: 55%" colspan="2">
|
||||||
|
@ -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())
|
@if(old())
|
||||||
editmode();
|
editmode();
|
||||||
@endif
|
@endif
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div id="entry_export"></div>
|
<div id="entry_export" style="user-select: text;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user