mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
using server.method() instead of direct call to $.ajax - preparation for electron without network requests
This commit is contained in:
@@ -43,7 +43,7 @@ const searchTree = (function() {
|
||||
}
|
||||
|
||||
if (e && e.which === $.ui.keyCode.ENTER) {
|
||||
$.get(baseApiUrl + 'notes?search=' + searchText).then(resp => {
|
||||
server.get('notes?search=' + searchText).then(resp => {
|
||||
// Pass a string to perform case insensitive matching
|
||||
getTree().filterBranches(node => {
|
||||
return resp.includes(node.data.note_id);
|
||||
|
||||
Reference in New Issue
Block a user