Merge pull request #2280 from nextcloud/do_not_escape_sharees

Do not escape sharees
This commit is contained in:
Lukas Reschke 2016-11-23 16:40:01 +01:00 committed by GitHub
commit e03512d4bc
1 changed files with 3 additions and 9 deletions

View File

@ -265,17 +265,11 @@
var text = item.label; var text = item.label;
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) { if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
text = t('core', '{sharee} (group)', { text = t('core', '{sharee} (group)', { sharee: text }, undefined, { escape: false });
sharee: text
});
} else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) { } else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) {
text = t('core', '{sharee} (remote)', { text = t('core', '{sharee} (remote)', { sharee: text }, undefined, { escape: false });
sharee: text
});
} else if (item.value.shareType === OC.Share.SHARE_TYPE_EMAIL) { } else if (item.value.shareType === OC.Share.SHARE_TYPE_EMAIL) {
text = t('core', '{sharee} (email)', { text = t('core', '{sharee} (email)', { sharee: text }, undefined, { escape: false });
sharee: text
});
} }
var insert = $("<div class='share-autocomplete-item'/>"); var insert = $("<div class='share-autocomplete-item'/>");
var avatar = $("<div class='avatardiv'></div>").appendTo(insert); var avatar = $("<div class='avatardiv'></div>").appendTo(insert);