mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
replacement of jquery ui dialog for bootstrap modal for jump to note dialog, #203
This commit is contained in:
parent
e62cca886c
commit
69d2bd8b58
@ -13,11 +13,7 @@ async function showDialog() {
|
||||
|
||||
$autoComplete.val('');
|
||||
|
||||
$dialog.dialog({
|
||||
modal: true,
|
||||
width: 800,
|
||||
position: { my: "center top+100", at: "top", of: window }
|
||||
});
|
||||
$dialog.modal();
|
||||
|
||||
await $autoComplete.autocomplete({
|
||||
source: noteautocompleteService.autocompleteSource,
|
||||
|
File diff suppressed because one or more lines are too long
@ -69,7 +69,7 @@ body {
|
||||
}
|
||||
|
||||
.tdialog {
|
||||
display: none; /* hidden by default */
|
||||
display: none;
|
||||
}
|
||||
|
||||
#note-detail-wrapper {
|
||||
|
@ -1,14 +1,27 @@
|
||||
<div id="jump-to-note-dialog" class="tdialog" title="Jump to note">
|
||||
<div class="form-group">
|
||||
<label for="jump-to-note-autocomplete">Note</label>
|
||||
<div class="input-group">
|
||||
<input id="jump-to-note-autocomplete" class="form-control" placeholder="search for note by its name">
|
||||
<div id="jump-to-note-dialog" class="modal mx-auto" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Jump to note</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="jump-to-note-autocomplete">Note</label>
|
||||
<div class="input-group">
|
||||
<input id="jump-to-note-autocomplete" class="form-control" placeholder="search for note by its name">
|
||||
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text show-recent-notes-button" title="Show recent notes"></span>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text show-recent-notes-button" title="Show recent notes"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="show-in-full-text-button" class="btn btn-sm">Search in full text <kbd>ctrl+enter</kbd></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="show-in-full-text-button" class="btn btn-sm">Search in full text <kbd>ctrl+enter</kbd></button>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user