Merge pull request #9211 from owncloud/fix-hidden-share-button

Fix hidden share button and checkbox layout
remotes/origin/ldap_group_count
Jan-Christoph Borchardt 11 years ago
commit 1dc6e1767c
  1. 2
      core/css/share.css
  2. 6
      core/js/share.js

@ -35,6 +35,8 @@
#shareWithList label input[type=checkbox]{
margin-left: 0;
top: 3px;
position: relative;
}
#shareWithList .username{
padding-right: 8px;

@ -569,6 +569,9 @@ OC.Share={
}
html += '<label><input type="checkbox" name="mailNotification" class="mailNotification" ' + checked + ' />'+t('core', 'notify by email')+'</label> ';
}
if (possiblePermissions & OC.PERMISSION_SHARE) {
html += '<label><input type="checkbox" name="share" class="permissions" '+shareChecked+' data-permissions="'+OC.PERMISSION_SHARE+'" />'+t('core', 'can share')+'</label>';
}
if (possiblePermissions & OC.PERMISSION_CREATE || possiblePermissions & OC.PERMISSION_UPDATE || possiblePermissions & OC.PERMISSION_DELETE) {
html += '<label><input type="checkbox" name="edit" class="permissions" '+editChecked+' />'+t('core', 'can edit')+'</label> ';
}
@ -583,9 +586,6 @@ OC.Share={
if (possiblePermissions & OC.PERMISSION_DELETE) {
html += '<label><input type="checkbox" name="delete" class="permissions" '+deleteChecked+' data-permissions="'+OC.PERMISSION_DELETE+'" />'+t('core', 'delete')+'</label>';
}
if (possiblePermissions & OC.PERMISSION_SHARE) {
html += '<label><input type="checkbox" name="share" class="permissions" '+shareChecked+' data-permissions="'+OC.PERMISSION_SHARE+'" />'+t('core', 'share')+'</label>';
}
html += '</div>';
html += '</li>';
html = $(html).appendTo('#shareWithList');

Loading…
Cancel
Save