Skip to content
Snippets Groups Projects
Commit 43c85248 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

Share - Dropdown dialog - cut off username if it's longer than 14 chars - bugfix for oc-1871

parent b23ad579
No related branches found
No related tags found
No related merge requests found
......@@ -267,9 +267,13 @@ OC.Share={
if (permissions & OC.PERMISSION_SHARE) {
shareChecked = 'checked="checked"';
}
var html = '<li style="clear: both;" data-share-type="'+shareType+'" data-share-with="'+shareWith+'">';
var html = '<li style="clear: both;" data-share-type="'+shareType+'" data-share-with="'+shareWith+'" title="' + shareWith + '">';
html += '<a href="#" class="unshare" style="display:none;"><img class="svg" alt="'+t('core', 'Unshare')+'" src="'+OC.imagePath('core', 'actions/delete')+'"/></a>';
html += shareWith;
if(shareWith.length > 14){
html += shareWith.substr(0,11) + '...';
}else{
html += shareWith;
}
if (possiblePermissions & OC.PERMISSION_CREATE || possiblePermissions & OC.PERMISSION_UPDATE || possiblePermissions & OC.PERMISSION_DELETE) {
if (editChecked == '') {
html += '<label style="display:none;">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment