refactoring of legacy js events

This commit is contained in:
zadam
2019-11-09 17:39:48 +01:00
parent 179d530ea9
commit 31bcc037f1
39 changed files with 110 additions and 110 deletions

View File

@@ -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