diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-10-01 18:04:20 +0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-10-01 18:04:20 +0400 |
commit | 43c85248d4f3c922a7e5cad2b01dd32adebfac7a (patch) | |
tree | be540e14a976ad7915935e4bd8149a956f3b0173 /core | |
parent | b23ad579dc674d3fdeaed0c6f650a6fcb8de6394 (diff) |
Share - Dropdown dialog - cut off username if it's longer than 14 chars - bugfix for oc-1871
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js index 6c26fed18be..e67b333dfc1 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -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;">'; |