mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -7,7 +7,7 @@ const $okButton = $("#info-dialog-ok-button");
|
||||
let resolve;
|
||||
let $originallyFocused; // element focused before the dialog was opened so we can return to it afterwards
|
||||
|
||||
function info(message) {
|
||||
export function info(message) {
|
||||
$originallyFocused = $(':focus');
|
||||
|
||||
utils.closeActiveDialog();
|
||||
@@ -34,8 +34,4 @@ $dialog.on("hidden.bs.modal", () => {
|
||||
}
|
||||
});
|
||||
|
||||
$okButton.click(() => $dialog.modal("hide"));
|
||||
|
||||
export default {
|
||||
info
|
||||
}
|
||||
$okButton.click(() => $dialog.modal("hide"));
|
||||
Reference in New Issue
Block a user