adjust autocomplete behavior for sharing menu
This commit is contained in:
parent
9aa809debf
commit
446cebf492
|
@ -444,7 +444,7 @@ OC.Share={
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$('#shareWith').autocomplete({minLength: 1, source: function(search, response) {
|
$('#shareWith').autocomplete({minLength: 2, delay: 750, source: function(search, response) {
|
||||||
var $loading = $('#dropdown .shareWithLoading');
|
var $loading = $('#dropdown .shareWithLoading');
|
||||||
$loading.removeClass('hidden');
|
$loading.removeClass('hidden');
|
||||||
$.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term, itemShares: OC.Share.itemShares }, function(result) {
|
$.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term, itemShares: OC.Share.itemShares }, function(result) {
|
||||||
|
|
Loading…
Reference in New Issue