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 id="content" style="margin-left: auto; margin-right: auto; width: 1100px">
|
||||||
<div class="hide-toggle" style="width: 300px; height: 100%; float: left;">
|
<div class="hide-toggle" style="width: 300px; height: 100%; float: left;">
|
||||||
<!--<button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button>-->
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label>Search:</label>
|
<label>Search:</label>
|
||||||
<input name="search" autocomplete="off">
|
<input name="search" autocomplete="off">
|
||||||
<button id="btnResetSearch">×</button>
|
<button id="btnResetSearch">×</button>
|
||||||
<span id="matches"></span>
|
<span id="matches"></span>
|
||||||
</p>
|
</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 id="tree">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,8 +94,6 @@ $(document).on('click', 'div.popover-content a', function(e) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let linkInfo;
|
|
||||||
|
|
||||||
$(document).bind('keydown', 'alt+l', function() {
|
$(document).bind('keydown', 'alt+l', function() {
|
||||||
var range = $('#noteDetail').summernote('createRange');
|
var range = $('#noteDetail').summernote('createRange');
|
||||||
console.log("range:", range);
|
console.log("range:", range);
|
||||||
|
@ -202,4 +202,12 @@ $("button#btnResetSearch").click(function () {
|
|||||||
|
|
||||||
let tree = $("#tree").fancytree("getTree");
|
let tree = $("#tree").fancytree("getTree");
|
||||||
tree.clearFilter();
|
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