summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogshareelistview.js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2016-11-29 11:24:35 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-11-29 12:17:27 +0100
commit1d50cab1c6aed0229b4d0fb8ddcb805b335cb321 (patch)
treea6833a3b15023615847bdfcfec6b7a1873a82f0c /core/js/sharedialogshareelistview.js
parente8ea9a5d276369c83d98ba4efe9bc969d06a9148 (diff)
downloadnextcloud-server-1d50cab1c6aed0229b4d0fb8ddcb805b335cb321.tar.gz
nextcloud-server-1d50cab1c6aed0229b4d0fb8ddcb805b335cb321.zip
Use displayname
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js/sharedialogshareelistview.js')
-rw-r--r--core/js/sharedialogshareelistview.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 226f18b2d76..7fcda92d5fd 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -22,7 +22,7 @@
'{{#each sharees}}' +
'<li data-share-id="{{shareId}}" data-share-type="{{shareType}}" data-share-with="{{shareWith}}">' +
'{{#if avatarEnabled}}' +
- '<div class="avatar {{#if modSeed}}imageplaceholderseed{{/if}}" data-username="{{shareWith}}" {{#if modSeed}}data-seed="{{shareWith}} {{shareType}}"{{/if}}></div>' +
+ '<div class="avatar {{#if modSeed}}imageplaceholderseed{{/if}}" data-username="{{shareWith}}" data-displayname="{{shareWithDisplayName}}" {{#if modSeed}}data-seed="{{shareWith}} {{shareType}}"{{/if}}></div>' +
'{{/if}}' +
'<span class="has-tooltip username" title="{{shareWithTitle}}">{{shareWithDisplayName}}</span>' +
'<span class="sharingOptionsGroup">' +
@@ -269,7 +269,8 @@
$this.css({width: 32, height: 32});
$this.imageplaceholder($this.data('seed'));
} else {
- $this.avatar($this.data('username'), 32);
+ // user, size, ie8fix, hidedefault, callback, displayname
+ $this.avatar($this.data('username'), 32, undefined, undefined, undefined, $this.data('displayname'));
}
});
}