mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix all launcher bar components
This commit is contained in:
		| @@ -13,9 +13,7 @@ const TPL = `<div class="jump-to-note-dialog modal mx-auto" tabindex="-1" role=" | ||||
|                     <input class="jump-to-note-autocomplete form-control" placeholder="${t('jump_to_note.search_placeholder')}"> | ||||
|                 </div> | ||||
|  | ||||
|                 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||||
|                     <span aria-hidden="true">×</span> | ||||
|                 </button> | ||||
|                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||||
|             </div> | ||||
|             <div class="modal-body"> | ||||
|                 <div class="algolia-autocomplete-container jump-to-note-results"></div> | ||||
| @@ -38,6 +36,8 @@ export default class JumpToNoteDialog extends BasicWidget { | ||||
|  | ||||
|     doRender() { | ||||
|         this.$widget = $(TPL); | ||||
|         bootstrap.Modal.getOrCreateInstance(this.$widget); | ||||
|  | ||||
|         this.$autoComplete = this.$widget.find(".jump-to-note-autocomplete"); | ||||
|         this.$results = this.$widget.find(".jump-to-note-results"); | ||||
|         this.$showInFullTextButton = this.$widget.find(".show-in-full-text-button"); | ||||
| @@ -94,7 +94,7 @@ export default class JumpToNoteDialog extends BasicWidget { | ||||
|  | ||||
|         const searchString = this.$autoComplete.val(); | ||||
|  | ||||
|         this.triggerCommand('searchNotes', {searchString}); | ||||
|         this.triggerCommand('searchNotes', { searchString }); | ||||
|  | ||||
|         this.$widget.modal('hide'); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user