[Pkg-owncloud-commits] [owncloud] 53/121: remove 'no people found' entry

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 5b27b015258a7d4d13234e148ce7f119317dd3a7
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Mon Aug 11 16:03:47 2014 +0200

    remove 'no people found' entry
---
 core/js/share.js | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/core/js/share.js b/core/js/share.js
index eceb6b9..f616560 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();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list