From e6b51cb54c40e887bf39c72f21c6ecaf47ecb265 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Thu, 6 Oct 2016 17:12:10 +0200 Subject: [9.2] Show avatar in share drop down (#25976) * Show avatar in share drop down * Fix share autocomplete vertical align with avatar Signed-off-by: Roeland Jago Douma --- core/js/sharedialogview.js | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'core/js') diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 2c60f216ef9..2bcd1fdb241 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -251,7 +251,7 @@ }, autocompleteRenderItem: function(ul, item) { - var insert = $(""); + var text = item.label; if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) { text = t('core', '{sharee} (group)', { @@ -269,15 +269,20 @@ }); } } - insert.text(text); - insert.attr('title', item.value.shareWith); - if(item.value.shareType === OC.Share.SHARE_TYPE_GROUP) { - insert = insert.wrapInner(''); + var insert = $("