From d3583f0c0e30b775bc541f21e9764af624c7f367 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Tue, 4 Feb 2014 19:52:25 +0100 Subject: Fix some glitches in ACL table display --- plugins/acl/acl.js | 4 +++- plugins/acl/localization/en_US.inc | 2 +- plugins/acl/skins/larry/acl.css | 9 +++++++-- plugins/acl/skins/larry/templates/table.html | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) (limited to 'plugins/acl') diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index d6934780f..aa4293f02 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -132,7 +132,9 @@ rcube_webmail.prototype.acl_mode_switch = function(elem) // ACL table initialization 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, {multiselect:true, draggable:false, keyboard:true, toggleselect:true}); diff --git a/plugins/acl/localization/en_US.inc b/plugins/acl/localization/en_US.inc index 3c61266be..2ddd7e103 100644 --- a/plugins/acl/localization/en_US.inc +++ b/plugins/acl/localization/en_US.inc @@ -19,7 +19,7 @@ $labels['sharing'] = 'Sharing'; $labels['myrights'] = 'Access Rights'; $labels['username'] = 'User:'; -$labels['advanced'] = 'advanced mode'; +$labels['advanced'] = 'Advanced mode'; $labels['newuser'] = 'Add entry'; $labels['actions'] = 'Access right actions...'; $labels['anyone'] = 'All users (anyone)'; diff --git a/plugins/acl/skins/larry/acl.css b/plugins/acl/skins/larry/acl.css index e392a269e..d010db0df 100644 --- a/plugins/acl/skins/larry/acl.css +++ b/plugins/acl/skins/larry/acl.css @@ -38,19 +38,25 @@ border-left: #BBD3DA dotted 1px; font-size: 11px; font-weight: bold; + width: auto; } #acltable tbody td { border-bottom: #DDDDDD 1px solid; text-align: center; - padding: 2px; + height: 16px; cursor: default; } #acltable thead td.user { border-left: none; + width: 30%; +} + +#acltable.advanced thead td.user { + width: 25%; } #acltable tbody td.user @@ -60,7 +66,6 @@ text-overflow: ellipsis; -o-text-overflow: ellipsis; border-left: none; - width: 50px; } #acltable tbody td.partial diff --git a/plugins/acl/skins/larry/templates/table.html b/plugins/acl/skins/larry/templates/table.html index 3cf8292a4..e48aad14b 100644 --- a/plugins/acl/skins/larry/templates/table.html +++ b/plugins/acl/skins/larry/templates/table.html @@ -12,7 +12,7 @@
  • -
  • +
  • -- cgit v1.2.3