mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
more refactoring ...
This commit is contained in:
@@ -57,8 +57,8 @@ const TPL = `
|
||||
</div>`;
|
||||
|
||||
export default class SearchBoxWidget extends BasicWidget {
|
||||
async doRender($widget) {
|
||||
$widget.append($(TPL));
|
||||
doRender() {
|
||||
const $widget = $(TPL);
|
||||
|
||||
this.$searchBox = $widget.find(".search-box");
|
||||
this.$closeSearchButton = $widget.find(".close-search-button");
|
||||
@@ -86,6 +86,8 @@ export default class SearchBoxWidget extends BasicWidget {
|
||||
this.$saveSearchButton.on('click', () => this.saveSearch());
|
||||
|
||||
this.$closeSearchButton.on('click', () => this.hideSearchListener());
|
||||
|
||||
return $widget;
|
||||
}
|
||||
|
||||
doSearch(searchText) {
|
||||
|
||||
Reference in New Issue
Block a user