]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust autocomplete behavior for sharing menu
authorCraig Morrissey <craig@owncloud.com>
Fri, 17 Oct 2014 15:55:32 +0000 (11:55 -0400)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 19 Nov 2014 16:01:13 +0000 (17:01 +0100)
core/js/share.js

index 534cc253880186617faae6f91004521febe516b9..85e92b43be1341af1d6558aec4e2b16184d23c9a 100644 (file)
@@ -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');
                                $loading.removeClass('hidden');
                                $.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term, itemShares: OC.Share.itemShares }, function(result) {