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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-24 14:40:04 +0300
committerJulius Härtl <jus@bitgrid.net>2019-10-24 14:40:04 +0300
commit77feb859768120320fcc09df7626eb679eef6a42 (patch)
tree055d501f55fccb7d1edbf99b51eb85902abca749 /src
parent9cf3c3fdee9a672a17b219c2a7390c993e73947a (diff)
Properly convert color the 2nd
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r--src/view/FilesAppIntegration.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/FilesAppIntegration.js b/src/view/FilesAppIntegration.js
index 1beab7e6..f6cba7d7 100644
--- a/src/view/FilesAppIntegration.js
+++ b/src/view/FilesAppIntegration.js
@@ -275,8 +275,9 @@ export default {
const userId = (view.UserId === '') ? view.UserName : view.UserId
var avatarContainer = $('<div class="richdocuments-avatar"><div class="avatar" title="' + view.UserName + '" data-user="' + userId + '"></div></div>')
var avatar = avatarContainer.find('.avatar')
+
avatar.css({
- 'border-color': Number(view.Color).toString(16),
+ 'border-color': '#' + ('000000' + Number(view.Color).toString(16)).substr(-6),
'border-width': '2px',
'border-style': 'solid'
})