summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-12 00:23:45 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-12 01:02:08 -0400
commit8f0354bcddb466006689f86369c9e27170ea691b (patch)
tree30fbd98d21e2779b609a229c80e5044b7878809e /core/js/share.js
parent8c9c095d485f0b2e27d7e5636167169bb3aefca1 (diff)
downloadnextcloud-server-8f0354bcddb466006689f86369c9e27170ea691b.tar.gz
nextcloud-server-8f0354bcddb466006689f86369c9e27170ea691b.zip
Temporarily disable sharing with contacts and emails, will come in next release
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 535ae6da995..e85c134f825 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -167,12 +167,12 @@ OC.Share={
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: 'Share via email: '+search.term, value: {shareType: OC.Share.SHARE_TYPE_EMAIL, shareWith: search.term}}]);
- } else {
+// 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: 'Share via email: '+search.term, value: {shareType: OC.Share.SHARE_TYPE_EMAIL, shareWith: search.term}}]);
+// } else {
response(['No people found']);
- }
+// }
}
});
// }