mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
return focus to the previously focused element after closing the dialog, fixes #861
This commit is contained in:
@@ -8,11 +8,7 @@ const $dialog = $("#recent-changes-dialog");
|
||||
const $content = $("#recent-changes-content");
|
||||
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.modal();
|
||||
utils.openDialog($dialog);
|
||||
|
||||
const result = await server.get('recent-changes');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user