summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2016-02-12 15:27:58 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2016-02-12 15:52:51 +0100
commit862e28f006801b13565f99253976fe973a09e657 (patch)
tree37ee5b01ec7c09040767d1b5072637b1067ab1e3
parent11abf2487c077ffb7783ad7c5643eba21ed4f3f6 (diff)
downloadnextcloud-server-862e28f006801b13565f99253976fe973a09e657.tar.gz
nextcloud-server-862e28f006801b13565f99253976fe973a09e657.zip
show remote server on auto complete
-rw-r--r--core/js/sharedialogview.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 4cebf7962e8..b9628f223a9 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -219,7 +219,11 @@
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
text = text + ' ('+t('core', 'group')+')';
} else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) {
- text = text + ' ('+t('core', 'remote')+')';
+ if (item.value.server) {
+ text = text + ' (' + t('core', 'at') + ' ' + item.value.server + ')';
+ } else {
+ text = text + ' (' + t('core', 'remote') + ')';
+ }
}
insert.text(text);
if(item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {