mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
activating note opens dialog with its detail
This commit is contained in:
parent
e0028ab6f1
commit
35cf8026b0
@ -23,6 +23,8 @@ async function showTree() {
|
|||||||
treeService.setCurrentNotePathToHash(node);
|
treeService.setCurrentNotePathToHash(node);
|
||||||
|
|
||||||
noteDetailService.switchToNote(noteId, true);
|
noteDetailService.switchToNote(noteId, true);
|
||||||
|
|
||||||
|
$("#detail").modal();
|
||||||
},
|
},
|
||||||
expand: (event, data) => treeService.setExpandedToServer(data.node.data.branchId, true),
|
expand: (event, data) => treeService.setExpandedToServer(data.node.data.branchId, true),
|
||||||
collapse: (event, data) => treeService.setExpandedToServer(data.node.data.branchId, false),
|
collapse: (event, data) => treeService.setExpandedToServer(data.node.data.branchId, false),
|
||||||
|
@ -12,6 +12,23 @@ html, body {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-full {
|
||||||
|
min-width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-full .modal-content {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#detail {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.fancytree-custom-icon {
|
.fancytree-custom-icon {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,35 @@
|
|||||||
|
|
||||||
<div id="tree"></div>
|
<div id="tree"></div>
|
||||||
|
|
||||||
|
<div id="detail" class="modal" tabindex="-1" role="dialog">
|
||||||
|
<div class="modal-dialog modal-full" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<input autocomplete="off" value="" id="note-title" class="form-control" tabindex="1">
|
||||||
|
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div id="note-detail-text" class="note-detail-component" tabindex="10000"></div>
|
||||||
|
|
||||||
|
<div id="note-detail-code" class="note-detail-component"></div>
|
||||||
|
|
||||||
|
<% include details/search.ejs %>
|
||||||
|
|
||||||
|
<% include details/render.ejs %>
|
||||||
|
|
||||||
|
<% include details/file.ejs %>
|
||||||
|
|
||||||
|
<% include details/image.ejs %>
|
||||||
|
|
||||||
|
<% include details/relation_map.ejs %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.baseApiUrl = 'api/';
|
window.baseApiUrl = 'api/';
|
||||||
window.device = "mobile";
|
window.device = "mobile";
|
||||||
@ -25,6 +54,8 @@
|
|||||||
<script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script>
|
<script src="libraries/fancytree/jquery.fancytree-all-deps.min.js"></script>
|
||||||
|
|
||||||
<link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
<link href="libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<script src="libraries/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||||
|
|
||||||
<script src="javascripts/services/mobile.js" crossorigin type="module"></script>
|
<script src="javascripts/services/mobile.js" crossorigin type="module"></script>
|
||||||
|
|
||||||
<link href="stylesheets/style.css" rel="stylesheet">
|
<link href="stylesheets/style.css" rel="stylesheet">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user