mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
working protected session in mobile
This commit is contained in:
@@ -46,6 +46,24 @@ async function showTree() {
|
||||
},
|
||||
clones: {
|
||||
highlightActiveClones: true
|
||||
},
|
||||
renderNode: function (event, data) {
|
||||
const node = data.node;
|
||||
const $nodeSpan = $(node.span);
|
||||
|
||||
// check if span of node already rendered
|
||||
if (!$nodeSpan.data('rendered')) {
|
||||
const addNoteButton = $('<button class="action-button" title="Add new sub-note" type="button" class="btn">+</button>');
|
||||
|
||||
addNoteButton.click(() => {
|
||||
alert("Add new note");
|
||||
});
|
||||
|
||||
$nodeSpan.append(addNoteButton);
|
||||
|
||||
// span rendered
|
||||
$nodeSpan.data('rendered', true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user