diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-02 23:29:13 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-02 23:29:13 +0200 |
commit | ac44506b401f973e8757809209b5989c11573cc4 (patch) | |
tree | 57d929ad2af67444ae9d085523744d3ec6216f1e /core/js | |
parent | b7eb3f3dff93762483f6b5a6d647d4855595f318 (diff) | |
parent | 32a6b3b8626041a6bd7eb259629273ee8feaba55 (diff) | |
download | nextcloud-server-ac44506b401f973e8757809209b5989c11573cc4.tar.gz nextcloud-server-ac44506b401f973e8757809209b5989c11573cc4.zip |
Merge branch 'master' into filesystem
Diffstat (limited to 'core/js')
-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;">'; |