working protected session in mobile

This commit is contained in:
azivner
2018-12-25 10:58:40 +01:00
parent 246dfbdcb4
commit 1dad919de9
6 changed files with 36 additions and 11 deletions

View File

@@ -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);
}
}
});