Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-05 11:48:33 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-05 13:26:27 +0300
commit616b7678352c0460b2ecd325b2e240dfa4a843ee (patch)
tree3b00758f11b32a1a6028765af403657038871413 /core
parent9c9bdabf74f4cf7a83a2bbe6410e0008f1a34c82 (diff)
don't try to render the avatars if avatars are disabled
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 60cd97fb572..f5fff61b9aa 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -276,11 +276,13 @@
text = t('core', '{sharee} (email)', { sharee: text }, undefined, { escape: false });
}
var insert = $("<div class='share-autocomplete-item'/>");
- var avatar = $("<div class='avatardiv'></div>").appendTo(insert);
- if (item.value.shareType === OC.Share.SHARE_TYPE_USER) {
- avatar.avatar(item.value.shareWith, 32, undefined, undefined, undefined, item.label);
- } else {
- avatar.imageplaceholder(text, undefined, 32);
+ if (oc_config.enable_avatars === true) {
+ var avatar = $("<div class='avatardiv'></div>").appendTo(insert);
+ if (item.value.shareType === OC.Share.SHARE_TYPE_USER) {
+ avatar.avatar(item.value.shareWith, 32, undefined, undefined, undefined, item.label);
+ } else {
+ avatar.imageplaceholder(text, undefined, 32);
+ }
}
$("<div class='autocomplete-item-text'></div>")