mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix dialog opening
This commit is contained in:
parent
ae8a2bfb1b
commit
a981df6282
@ -129,10 +129,11 @@ $noteTabContainer.on("click", ".export-note-button", function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
exportDialog.showDialog(treeService.getActiveNode(), 'single');
|
import('./dialogs/export.js').then(d => d.showDialog(treeService.getActiveNode(), 'single'));
|
||||||
});
|
});
|
||||||
|
|
||||||
$noteTabContainer.on("click", ".import-files-button", () => importDialog.showDialog(treeService.getActiveNode()));
|
$noteTabContainer.on("click", ".import-files-button",
|
||||||
|
() => import('./dialogs/import.js').then(d => d.showDialog(treeService.getActiveNode())));
|
||||||
|
|
||||||
$noteTabContainer.on("click", ".print-note-button", async function () {
|
$noteTabContainer.on("click", ".print-note-button", async function () {
|
||||||
if ($(this).hasClass("disabled")) {
|
if ($(this).hasClass("disabled")) {
|
||||||
|
@ -10,7 +10,7 @@ const $title = $("#note-revision-title");
|
|||||||
let revisionItems = [];
|
let revisionItems = [];
|
||||||
let note;
|
let note;
|
||||||
|
|
||||||
async function showCurrentNoteRevisions() {
|
export async function showCurrentNoteRevisions() {
|
||||||
await showNoteRevisionsDialog(noteDetailService.getActiveNoteId());
|
await showNoteRevisionsDialog(noteDetailService.getActiveNoteId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ function registerEntrypoints() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
import(NOTE_REVISIONS).then(d => d.showDialog());
|
import(NOTE_REVISIONS).then(d => d.showCurrentNoteRevisions());
|
||||||
});
|
});
|
||||||
|
|
||||||
$noteTabContainer.on("click", ".show-source-button", function() {
|
$noteTabContainer.on("click", ".show-source-button", function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user