diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-08-17 09:16:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 09:16:13 +0200 |
commit | a53aa40b4ddf4c9f868ad03df7131ceee417f2c9 (patch) | |
tree | 5df442faf3665c87e20d68f6c9a3adb7db7d9e02 | |
parent | 0ceb06fde5d9052285f636d5d9d4329e68d04a0a (diff) | |
parent | 5f06380a4f4c8e49d8367825be119feba360b380 (diff) | |
download | nextcloud-server-a53aa40b4ddf4c9f868ad03df7131ceee417f2c9.tar.gz nextcloud-server-a53aa40b4ddf4c9f868ad03df7131ceee417f2c9.zip |
Merge pull request #6126 from nextcloud/trigger-search
Trigger search after re-focus
-rw-r--r-- | core/js/sharedialogview.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 157887fbb94..6b65e46b254 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -70,6 +70,7 @@ shareeListView: undefined, events: { + 'focus .shareWithField': 'onShareWithFieldFocus', 'input .shareWithField': 'onShareWithFieldChanged' }, @@ -118,7 +119,8 @@ _.bindAll(this, 'autocompleteHandler', '_onSelectRecipient', - 'onShareWithFieldChanged' + 'onShareWithFieldChanged', + 'onShareWithFieldFocus' ); OC.Plugins.attach('OC.Share.ShareDialogView', this); @@ -131,6 +133,11 @@ } }, + /* trigger search after the field was re-selected */ + onShareWithFieldFocus: function() { + this.$el.find('.shareWithField').autocomplete("search"); + }, + autocompleteHandler: function (search, response) { var $shareWithField = $('.shareWithField'), view = this, |