diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-06-28 11:18:52 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-06-28 11:18:52 +0200 |
commit | d9012055cbc94e478c41c975c2d22843d847b065 (patch) | |
tree | 44f65142d269802da814f4fa0081680f28538076 /plugins/acl/acl.js | |
parent | b866a27364a66c436156732553b1fa638e046b8b (diff) |
Moved advanced switch into table actions menu - fixed css issue in Larry skin
Diffstat (limited to 'plugins/acl/acl.js')
-rw-r--r-- | plugins/acl/acl.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index aa9e06d3d..b6e2c811d 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -28,6 +28,9 @@ if (window.rcmail) { rcmail.enable_command('acl-create', 'acl-save', 'acl-cancel', 'acl-mode-switch', true); rcmail.enable_command('acl-delete', 'acl-edit', false); + + if (rcmail.env.acl_advanced) + $('#acl-switch').addClass('selected'); }); } @@ -129,6 +132,8 @@ 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'); + this.acl_list = new rcube_list_widget(this.gui_objects.acltable, {multiselect:true, draggable:false, keyboard:true, toggleselect:true}); this.acl_list.addEventListener('select', function(o) { rcmail.acl_list_select(o); }); |