mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	close note type dropdown after click
This commit is contained in:
		| @@ -7,7 +7,6 @@ import Attribute from "../entities/attribute.js"; | ||||
| import options from "./options.js"; | ||||
| import treeCache from "./tree_cache.js"; | ||||
| import noteAttributeCache from "./note_attribute_cache.js"; | ||||
| import tree from "./tree.js"; | ||||
|  | ||||
| const $outstandingSyncsCount = $("#outstanding-syncs-count"); | ||||
|  | ||||
|   | ||||
| @@ -64,6 +64,8 @@ export default class NoteTypeWidget extends TabAwareWidget { | ||||
|                     const noteType = NOTE_TYPES.find(nt => nt.type === type); | ||||
|  | ||||
|                     this.save(noteType.type, noteType.mime); | ||||
|  | ||||
|                     this.$widget.find('.dropdown-toggle').dropdown('toggle'); | ||||
|                 }); | ||||
|  | ||||
|             if (this.note.type === noteType.type) { | ||||
|   | ||||
| @@ -237,8 +237,6 @@ async function findSimilarNotes(noteId) { | ||||
|         maxDate: dateUtils.utcDateStr(new Date(dateCreatedTs + 1800)), | ||||
|     }; | ||||
|  | ||||
|     console.log("ORIG:", origNote.flatText); | ||||
|  | ||||
|     for (const note of Object.values(noteCache.notes)) { | ||||
|         if (note.noteId === origNote.noteId) { | ||||
|             continue; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user