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