diff options
author | Björn Schießle <schiessle@owncloud.com> | 2014-08-11 17:39:04 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2014-08-11 17:39:04 +0200 |
commit | 6aa8693198f516b7063e692d767a841ca7bd9e5c (patch) | |
tree | c43446bf9d33c83a2f5692382c5fb94d3666d643 /core | |
parent | c46b60e822d225456beef7f5eb1c856b675400b5 (diff) | |
parent | 54b5cecfb81d110f0a951cd143450ca0b8283aad (diff) | |
download | nextcloud-server-6aa8693198f516b7063e692d767a841ca7bd9e5c.tar.gz nextcloud-server-6aa8693198f516b7063e692d767a841ca7bd9e5c.zip |
Merge pull request #10336 from owncloud/fix_share_drop_down
remove 'no people found' entry in share dialog
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/core/js/share.js b/core/js/share.js index eceb6b98f1e..f6165602f6c 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -441,25 +441,14 @@ OC.Share={ }); } $('#shareWith').autocomplete({minLength: 1, source: function(search, response) { - // if (cache[search.term]) { - // response(cache[search.term]); - // } else { $.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term, itemShares: OC.Share.itemShares }, function(result) { if (result.status == 'success' && result.data.length > 0) { $( "#shareWith" ).autocomplete( "option", "autoFocus", true ); response(result.data); } else { - // Suggest sharing via email if valid email address -// var pattern = new RegExp(/^[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i); -// if (pattern.test(search.term)) { -// response([{label: t('core', 'Share via email:')+' '+search.term, value: {shareType: OC.Share.SHARE_TYPE_EMAIL, shareWith: search.term}}]); -// } else { - $( "#shareWith" ).autocomplete( "option", "autoFocus", false ); - response([t('core', 'No people found')]); -// } + response(); } }); - // } }, focus: function(event, focused) { event.preventDefault(); |