mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
ETAPI auth, spec improvements etc.
This commit is contained in:
@@ -245,10 +245,11 @@ function focusSavedElement() {
|
||||
$lastFocusedElement = null;
|
||||
}
|
||||
|
||||
async function openDialog($dialog) {
|
||||
closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
async function openDialog($dialog, closeActDialog = true) {
|
||||
if (closeActDialog) {
|
||||
closeActiveDialog();
|
||||
glob.activeDialog = $dialog;
|
||||
}
|
||||
|
||||
saveFocusedElement();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user