]> source.dussan.org Git - nextcloud-server.git/commitdiff
add hint in Share placeholder on remote share syntax
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Thu, 26 Mar 2015 17:30:55 +0000 (18:30 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Thu, 26 Mar 2015 17:30:55 +0000 (18:30 +0100)
core/js/share.js

index 061ac6affa22dc6c7e8117fff98904bae4a53016..551e1bf09abfce815b3a800a250349b103428ca2 100644 (file)
@@ -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>';