fix search results

This commit is contained in:
zadam 2020-07-02 20:19:09 +02:00
parent 3e189d5c10
commit ef847b9904
2 changed files with 5 additions and 3 deletions

View File

@ -31,7 +31,7 @@
"commonmark": "0.29.1",
"cookie-parser": "1.4.5",
"csurf": "1.11.0",
"dayjs": "1.8.28",
"dayjs": "1.8.29",
"debug": "4.1.1",
"ejs": "3.1.3",
"electron-debug": "3.1.0",

View File

@ -48,8 +48,10 @@ export default class SearchResultsWidget extends BasicWidget {
for (const result of results) {
const link = $('<a>', {
href: 'javascript:',
text: result.notePathTitle
}).attr('data-action', 'note').attr('data-note-path', result.notePath);
text: result.notePathTitle,
'data-action': 'note',
'data-note-path': result.notePathArray.join('/')
});
const $result = $('<li>').append(link);