mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
refactoring of legacy js events
This commit is contained in:
@@ -26,7 +26,7 @@ function clearText($el) {
|
||||
}
|
||||
|
||||
$el.setSelectedPath("");
|
||||
$el.autocomplete("val", "").change();
|
||||
$el.autocomplete("val", "").trigger('change');
|
||||
}
|
||||
|
||||
function showRecentNotes($el) {
|
||||
@@ -71,9 +71,9 @@ function initNoteAutocomplete($el, options) {
|
||||
|
||||
$el.after($sideButtons);
|
||||
|
||||
$clearTextButton.click(() => clearText($el));
|
||||
$clearTextButton.on('click', () => clearText($el));
|
||||
|
||||
$showRecentNotesButton.click(e => {
|
||||
$showRecentNotesButton.on('click', e => {
|
||||
showRecentNotes($el);
|
||||
|
||||
// this will cause the click not give focus to the "show recent notes" button
|
||||
|
||||
Reference in New Issue
Block a user