fixes to multivalued input tabindex

This commit is contained in:
azivner
2018-08-14 13:50:04 +02:00
parent 41a6e777ea
commit f7587de452
4 changed files with 26 additions and 6 deletions

View File

@@ -11,6 +11,12 @@ function ScriptApi(startNote, currentNote, originEntity = null) {
await treeService.activateNode(notePath);
}
async function activateNewNote(notePath) {
await treeService.reload();
await treeService.activateNode(notePath, true);
}
function addButtonToToolbar(buttonId, button) {
$("#" + buttonId).remove();
@@ -57,6 +63,7 @@ function ScriptApi(startNote, currentNote, originEntity = null) {
originEntity: originEntity,
addButtonToToolbar,
activateNote,
activateNewNote,
getInstanceName: () => window.glob.instanceName,
runOnServer,
formatDateISO: utils.formatDateISO,