summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 18:30:55 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 18:30:55 +0100
commitd32e3870d21c8a65e822212505213755a338e97a (patch)
tree51be7e865dd3788957058d177fdbed8d5a999a2d /core
parentb95139e5b24b64abbb00110ccf0f7ca30fb036af (diff)
downloadnextcloud-server-d32e3870d21c8a65e822212505213755a338e97a.tar.gz
nextcloud-server-d32e3870d21c8a65e822212505213755a338e97a.zip
add hint in Share placeholder on remote share syntax
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 061ac6affa2..551e1bf09ab 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -391,8 +391,13 @@ OC.Share={
}
});
+ var sharePlaceholder = t('core', 'Share with users or groups …');
+ if(oc_appconfig.core.remoteShareAllowed) {
+ sharePlaceholder = t('core', 'Share with users, groups or remote (user@domain) …');
+ }
+
html += '<label for="shareWith" class="hidden-visually">'+t('core', 'Share')+'</label>';
- html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with user or group …')+'" />';
+ html += '<input id="shareWith" type="text" placeholder="' + sharePlaceholder + '" />';
html += '<span class="shareWithLoading icon-loading-small hidden"></span>';
html += '<ul id="shareWithList">';
html += '</ul>';