Revert "Autocomplete from first letter on"

This reverts commit b79cd268ba.
master
ganomi 2013-11-26 10:34:31 +01:00
parent b79cd268ba
commit 1c9a678b40
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ Calendar={
init:function(){
if(typeof OC.Share !== typeof undefined){
var itemShares = [OC.Share.SHARE_TYPE_USER, OC.Share.SHARE_TYPE_GROUP];
$('#sharewith').autocomplete({minLength: 1, source: function(search, response) {
$('#sharewith').autocomplete({minLength: 2, source: function(search, response) {
$.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term, itemShares: itemShares }, function(result) {
if (result.status == 'success' && result.data.length > 0) {
response(result.data);