mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
focus input on shown modal in branch prefix dialog, fixes #560
This commit is contained in:
parent
547ad7221d
commit
f3ed7e936d
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.32.2-beta",
|
"version": "0.32.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -21,7 +21,7 @@ async function showDialog() {
|
|||||||
branchId = currentNode.data.branchId;
|
branchId = currentNode.data.branchId;
|
||||||
const branch = await treeCache.getBranch(branchId);
|
const branch = await treeCache.getBranch(branchId);
|
||||||
|
|
||||||
$treePrefixInput.val(branch.prefix).focus();
|
$treePrefixInput.val(branch.prefix);
|
||||||
|
|
||||||
const noteTitle = await treeUtils.getNoteTitle(currentNode.data.noteId);
|
const noteTitle = await treeUtils.getNoteTitle(currentNode.data.noteId);
|
||||||
|
|
||||||
@ -46,6 +46,8 @@ $form.submit(() => {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$dialog.on('shown.bs.modal', () => $treePrefixInput.focus());
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
showDialog
|
showDialog
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user