mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
small fixes
This commit is contained in:
@@ -59,7 +59,7 @@ export default class SidebarOptions {
|
||||
widget.option = this.parseJsonSafely(options[widget.name + 'Widget']) || {
|
||||
enabled: true,
|
||||
expanded: true,
|
||||
position: 100
|
||||
position: 1000
|
||||
};
|
||||
|
||||
return widget;
|
||||
@@ -117,7 +117,7 @@ export default class SidebarOptions {
|
||||
opts[widgetName + 'Widget'] = JSON.stringify({
|
||||
enabled: $.contains(this.$widgetsEnabled[0], el),
|
||||
expanded: $(el).find("input[type=checkbox]").is(":checked"),
|
||||
position: (i + 1) * 10
|
||||
position: (i + 1) * 100
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -89,6 +89,15 @@ export default class LinkMap {
|
||||
.prop("id", noteBoxId);
|
||||
|
||||
linkService.createNoteLink(noteId, note.title).then($link => {
|
||||
$link.click(e => {
|
||||
try {
|
||||
$link.tooltip('dispose');
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
linkService.goToLink(e);
|
||||
});
|
||||
|
||||
$noteBox.append($("<span>").addClass("title").append($link));
|
||||
});
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@ const utils = require('../../services/utils');
|
||||
const optionService = require('../../services/options');
|
||||
|
||||
async function getAutocomplete(req) {
|
||||
const query = req.query.query;
|
||||
const query = req.query.query.trim();
|
||||
const activeNoteId = req.query.activeNoteId || 'none';
|
||||
|
||||
let results;
|
||||
|
||||
const timestampStarted = Date.now();
|
||||
|
||||
if (query.trim().length === 0) {
|
||||
if (query.length === 0) {
|
||||
results = await getRecentNotes(activeNoteId);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -23,7 +23,7 @@ async function searchForNoteIds(searchString) {
|
||||
|
||||
const isArchivedFilter = filters.find(filter => filter.name.toLowerCase() === 'isarchived');
|
||||
|
||||
if (isArchivedFilter) {console.log(isArchivedFilter);
|
||||
if (isArchivedFilter) {
|
||||
if (isArchivedFilter.operator === 'exists') {
|
||||
noteIds = noteIds.filter(noteCacheService.isArchived);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user