mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
button for collapsing tree, button for new top level note
This commit is contained in:
parent
36dbcfcce0
commit
a7180e0e19
@ -13,14 +13,21 @@
|
||||
|
||||
<div id="content" style="margin-left: auto; margin-right: auto; width: 1100px">
|
||||
<div class="hide-toggle" style="width: 300px; height: 100%; float: left;">
|
||||
<!--<button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button>-->
|
||||
|
||||
<p>
|
||||
<label>Search:</label>
|
||||
<input name="search" autocomplete="off">
|
||||
<button id="btnResetSearch">×</button>
|
||||
<span id="matches"></span>
|
||||
</p>
|
||||
|
||||
<a onclick="createNewTopLevelNote()" title="Create new top level note">
|
||||
<img src="stat/icons/file-plus.png" alt="Create new top level note"/>
|
||||
</a>
|
||||
|
||||
<a onclick="collapseTree()" title="Collapse tree">
|
||||
<img src="stat/icons/list.png" alt="Collapse tree"/>
|
||||
</a>
|
||||
|
||||
<div id="tree">
|
||||
</div>
|
||||
</div>
|
||||
|
@ -94,8 +94,6 @@ $(document).on('click', 'div.popover-content a', function(e) {
|
||||
}
|
||||
});
|
||||
|
||||
let linkInfo;
|
||||
|
||||
$(document).bind('keydown', 'alt+l', function() {
|
||||
var range = $('#noteDetail').summernote('createRange');
|
||||
console.log("range:", range);
|
||||
|
@ -202,4 +202,12 @@ $("button#btnResetSearch").click(function () {
|
||||
|
||||
let tree = $("#tree").fancytree("getTree");
|
||||
tree.clearFilter();
|
||||
});
|
||||
});
|
||||
|
||||
function collapseTree() {
|
||||
$("#tree").fancytree("getRootNode").visit(function(node){
|
||||
node.setExpanded(false);
|
||||
});
|
||||
}
|
||||
|
||||
$(document).bind('keydown', 'alt+c', collapseTree);
|
Loading…
x
Reference in New Issue
Block a user