mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
tabs WIP
This commit is contained in:
@@ -16,9 +16,9 @@ class NoteDetailCode {
|
||||
this.$component = ctx.$noteTabContent.find('.note-detail-code');
|
||||
this.$executeScriptButton = ctx.$noteTabContent.find(".execute-script-button");
|
||||
|
||||
utils.bindShortcut("ctrl+return", this.executeCurrentNote);
|
||||
utils.bindShortcut("ctrl+return", () => this.executeCurrentNote());
|
||||
|
||||
this.$executeScriptButton.click(this.executeCurrentNote);
|
||||
this.$executeScriptButton.click(() => this.executeCurrentNote());
|
||||
}
|
||||
|
||||
async show() {
|
||||
@@ -50,7 +50,7 @@ class NoteDetailCode {
|
||||
lineWrapping: true
|
||||
});
|
||||
|
||||
this.onNoteChange(noteDetailService.noteChanged);
|
||||
this.onNoteChange(() => this.ctx.noteChanged());
|
||||
}
|
||||
|
||||
this.$component.show();
|
||||
|
||||
Reference in New Issue
Block a user