renaming/refactoring of search services

This commit is contained in:
azivner
2018-06-04 19:48:02 -04:00
parent 76c0e5b2b8
commit 015cd68756
7 changed files with 15 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ import jumpToNoteDialog from "../dialogs/jump_to_note.js";
import noteSourceDialog from "../dialogs/note_source.js";
import recentChangesDialog from "../dialogs/recent_changes.js";
import sqlConsoleDialog from "../dialogs/sql_console.js";
import searchTreeService from "./search_tree.js";
import searchNotesService from "./search_notes.js";
import labelsDialog from "../dialogs/labels.js";
import protectedSessionService from "./protected_session.js";
@@ -39,8 +39,8 @@ function registerEntrypoints() {
$("#recent-notes-button").click(recentNotesDialog.showDialog);
utils.bindShortcut('ctrl+e', recentNotesDialog.showDialog);
$("#toggle-search-button").click(searchTreeService.toggleSearch);
utils.bindShortcut('ctrl+s', searchTreeService.toggleSearch);
$("#toggle-search-button").click(searchNotesService.toggleSearch);
utils.bindShortcut('ctrl+s', searchNotesService.toggleSearch);
$(".show-labels-button").click(labelsDialog.showDialog);
utils.bindShortcut('alt+l', labelsDialog.showDialog);