mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
close note type dropdown after click
This commit is contained in:
parent
85d13b1d62
commit
f5216e4799
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user