summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-10-27 00:23:23 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-10-27 00:32:47 +0200
commiteace50704310d4a1e8386d092242efa6d3d81d91 (patch)
tree7b6cd1f403ad55d5038b98265e5bd7cfeb476302 /apps/comments/js
parent7f58c41015dc152b04569d795389b4b0df8e3672 (diff)
downloadnextcloud-server-eace50704310d4a1e8386d092242efa6d3d81d91.tar.gz
nextcloud-server-eace50704310d4a1e8386d092242efa6d3d81d91.zip
apply our theming
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/comments/js')
-rw-r--r--apps/comments/js/commentstabview.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 125420d7b26..9082706e715 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -180,9 +180,23 @@
$target.atwho({
at: '@',
callbacks: {
- remoteFilter: s._onAutoComplete
+ remoteFilter: s._onAutoComplete,
+ highlighter: function (li) {
+ // misuse the highlighter callback to instead of
+ // highlighting loads the avatars.
+ var $li = $(li);
+ $li.find('.avatar').avatar(undefined, 32);
+ return $li;
+ }
},
- displayTpl: "<li>${label}</li>",
+ displayTpl: '<li>'
+ + '<span class="avatar-name-wrapper">'
+ + '<div class="avatar" '
+ + 'data-username="${id}"' // for avatars
+ + ' data-user="${id}"' // for contactsmenu
+ + ' data-user-display-name="${label}"></div>'
+ + ' <strong>${label}</strong>'
+ + '</span></li>',
insertTpl: ''
+ '<span class="avatar-name-wrapper">'
+ '<div class="avatar" '
@@ -229,7 +243,7 @@
callback(data);
}
);
- }, 200);
+ }, 400);
},
_formatItem: function(commentModel) {