mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
NoteContext => TabContext
This commit is contained in:
@@ -3,14 +3,14 @@ import searchNotesService from "./search_notes.js";
|
||||
|
||||
class NoteDetailSearch {
|
||||
/**
|
||||
* @param {NoteContext} ctx
|
||||
* @param {TabContext} ctx
|
||||
*/
|
||||
constructor(ctx) {
|
||||
this.ctx = ctx;
|
||||
this.$searchString = ctx.$noteTabContent.find(".search-string");
|
||||
this.$component = ctx.$noteTabContent.find('.note-detail-search');
|
||||
this.$help = ctx.$noteTabContent.find(".note-detail-search-help");
|
||||
this.$refreshButton = ctx.$noteTabContent.find('.note-detail-search-refresh-results-button');
|
||||
this.$searchString = ctx.$tabContent.find(".search-string");
|
||||
this.$component = ctx.$tabContent.find('.note-detail-search');
|
||||
this.$help = ctx.$tabContent.find(".note-detail-search-help");
|
||||
this.$refreshButton = ctx.$tabContent.find('.note-detail-search-refresh-results-button');
|
||||
|
||||
this.$refreshButton.click(async () => {
|
||||
await noteDetailService.saveNotesIfChanged();
|
||||
|
||||
Reference in New Issue
Block a user