Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trigger autocompletion when the input field is focused
This unifies the behaviour with the one used in the file list, and it
will also simplify other changes in following commits (like not needing
to show error messages when confirming a share and instead rely on those
from the autocompletion).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Apr 3, 2018
commit f422262c2f51331f7f103ddaf6ec026e705e2e02
5 changes: 5 additions & 0 deletions js/vendor/nextcloud/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,11 @@
}
});

/* trigger search after the field was re-selected */
$('#shareWith').on('focus', function() {
$(this).autocomplete('search');
});

if (link && linksAllowed && $('#email').length != 0) {
$('#email').autocomplete({
minLength: 1,
Expand Down