mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
fix "search in fulltext" button on "jump to note" dialog.
This commit is contained in:
parent
98f1bc51a5
commit
408ed8dbf0
@ -30,9 +30,8 @@ function showInFullText(e) {
|
||||
|
||||
const searchText = $autoComplete.val();
|
||||
|
||||
searchNotesService.resetSearch();
|
||||
searchNotesService.showSearch();
|
||||
searchNotesService.doSearch(searchText);
|
||||
appContext.triggerCommand('showSearch', {searchText});
|
||||
appContext.triggerCommand('searchForResults', {searchText});
|
||||
|
||||
$dialog.modal('hide');
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ export default class SearchBoxWidget extends BasicWidget {
|
||||
this.resetSearchEvent();
|
||||
}
|
||||
|
||||
showSearchEvent() {
|
||||
showSearchEvent({searchText}) {
|
||||
utils.saveFocusedElement();
|
||||
|
||||
this.$searchBox.slideDown();
|
||||
@ -138,6 +138,10 @@ export default class SearchBoxWidget extends BasicWidget {
|
||||
}
|
||||
});
|
||||
|
||||
if (searchText) {
|
||||
this.$searchInput.val(searchText);
|
||||
}
|
||||
|
||||
this.$searchInput.trigger('focus');
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
import BasicWidget from "./basic_widget.js";
|
||||
import toastService from "../services/toast.js";
|
||||
import server from "../services/server.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="search-results">
|
||||
|
Loading…
x
Reference in New Issue
Block a user