Merge pull request #6127 from nextcloud/12-6126
[stable12] Trigger search after re-focus
This commit is contained in:
commit
73e7560655
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue