Fix some glitches in ACL table display

pull/165/head
Thomas Bruederli 11 years ago
parent f147849bb0
commit affabd9a4b

@ -134,7 +134,9 @@ rcube_webmail.prototype.acl_mode_switch = function(elem)
// ACL table initialization // ACL table initialization
rcube_webmail.prototype.acl_list_init = function() rcube_webmail.prototype.acl_list_init = function()
{ {
$('#acl-switch')[this.env.acl_advanced ? 'addClass' : 'removeClass']('selected'); var method = this.env.acl_advanced ? 'addClass' : 'removeClass';
$('#acl-switch')[method]('selected');
$(this.gui_objects.acltable)[method]('advanced');
this.acl_list = new rcube_list_widget(this.gui_objects.acltable, this.acl_list = new rcube_list_widget(this.gui_objects.acltable,
{multiselect:true, draggable:false, keyboard:true, toggleselect:true}); {multiselect:true, draggable:false, keyboard:true, toggleselect:true});

@ -19,7 +19,7 @@
$labels['sharing'] = 'Sharing'; $labels['sharing'] = 'Sharing';
$labels['myrights'] = 'Access Rights'; $labels['myrights'] = 'Access Rights';
$labels['username'] = 'User:'; $labels['username'] = 'User:';
$labels['advanced'] = 'advanced mode'; $labels['advanced'] = 'Advanced mode';
$labels['newuser'] = 'Add entry'; $labels['newuser'] = 'Add entry';
$labels['editperms'] = 'Edit permissions'; $labels['editperms'] = 'Edit permissions';
$labels['actions'] = 'Access right actions...'; $labels['actions'] = 'Access right actions...';

@ -38,19 +38,25 @@
border-left: #BBD3DA dotted 1px; border-left: #BBD3DA dotted 1px;
font-size: 11px; font-size: 11px;
font-weight: bold; font-weight: bold;
width: auto;
} }
#acltable tbody td #acltable tbody td
{ {
border-bottom: #DDDDDD 1px solid; border-bottom: #DDDDDD 1px solid;
text-align: center; text-align: center;
padding: 2px; height: 16px;
cursor: default; cursor: default;
} }
#acltable thead td.user #acltable thead td.user
{ {
border-left: none; border-left: none;
width: 30%;
}
#acltable.advanced thead td.user {
width: 25%;
} }
#acltable tbody td.user #acltable tbody td.user
@ -60,7 +66,6 @@
text-overflow: ellipsis; text-overflow: ellipsis;
-o-text-overflow: ellipsis; -o-text-overflow: ellipsis;
border-left: none; border-left: none;
width: 50px;
} }
#acltable tbody td.partial #acltable tbody td.partial

@ -12,7 +12,7 @@
<li><roundcube:button command="acl-edit" label="edit" class="icon" classAct="icon active" innerclass="icon edit" /></li> <li><roundcube:button command="acl-edit" label="edit" class="icon" classAct="icon active" innerclass="icon edit" /></li>
<li><roundcube:button command="acl-delete" label="delete" class="icon" classAct="icon active" innerclass="icon delete" /></li> <li><roundcube:button command="acl-delete" label="delete" class="icon" classAct="icon active" innerclass="icon delete" /></li>
<roundcube:if condition="!in_array('acl_advanced_mode', (array)config:dont_override)" /> <roundcube:if condition="!in_array('acl_advanced_mode', (array)config:dont_override)" />
<li><roundcube:button name="acl-switch" id="acl-switch" label="acl.advanced" onclick="rcmail.command('acl-mode-switch')" class="active" /></li> <li><roundcube:button name="acl-switch" id="acl-switch" label="acl.advanced" onclick="rcmail.command('acl-mode-switch');return false" class="active" /></li>
<roundcube:endif /> <roundcube:endif />
</ul> </ul>
</div> </div>

@ -1424,7 +1424,7 @@ table.records-table {
.records-table tr.unfocused td { .records-table tr.unfocused td {
color: #fff !important; color: #fff !important;
background: #4db0d2 !important; background-color: #4db0d2 !important;
} }
.records-table tr.unfocused td a, .records-table tr.unfocused td a,

Loading…
Cancel
Save