Correctly handle displaynames returned from the sharee API
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
eeec3c7e86
commit
86e6cebc18
|
@ -477,7 +477,7 @@
|
||||||
|
|
||||||
autocompleteRenderItem: function(ul, item) {
|
autocompleteRenderItem: function(ul, item) {
|
||||||
var icon = 'icon-user';
|
var icon = 'icon-user';
|
||||||
var text = item.label;
|
var text = escapeHTML(item.label);
|
||||||
var description = '';
|
var description = '';
|
||||||
var type = '';
|
var type = '';
|
||||||
var getTranslatedType = function(type) {
|
var getTranslatedType = function(type) {
|
||||||
|
@ -497,7 +497,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof item.name !== 'undefined') {
|
if (typeof item.name !== 'undefined') {
|
||||||
text = item.name;
|
text = escapeHTML(item.name);
|
||||||
}
|
}
|
||||||
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
|
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
|
||||||
icon = 'icon-contacts-dark';
|
icon = 'icon-contacts-dark';
|
||||||
|
|
Loading…
Reference in New Issue