diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-05 11:48:33 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-05 13:26:27 +0300 |
commit | 616b7678352c0460b2ecd325b2e240dfa4a843ee (patch) | |
tree | 3b00758f11b32a1a6028765af403657038871413 /core | |
parent | 9c9bdabf74f4cf7a83a2bbe6410e0008f1a34c82 (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.js | 12 |
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>") |