Hide note selector when the user clicks elsewhere
This commit is contained in:
parent
7d539d44e5
commit
b454ad8dad
1 changed files with 7 additions and 0 deletions
|
|
@ -213,6 +213,13 @@ function autoCompleteNote (field_id, note_list_id, notes, notes_display, alias_p
|
||||||
fallbackPlacement: 'clockwise'
|
fallbackPlacement: 'clockwise'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// When the user clicks elsewhere, we hide the tooltip
|
||||||
|
$(document).click(function(e) {
|
||||||
|
if (!e.target.id.startsWith(alias_prefix)) {
|
||||||
|
field.tooltip("hide");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
let old_pattern = null;
|
let old_pattern = null;
|
||||||
|
|
||||||
// Clear search on click
|
// Clear search on click
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue