Fixed ACL edition in advanced mode

pull/88/head
Aleksander Machniak 11 years ago
parent 91a4864231
commit f5584cbfeb

@ -302,7 +302,7 @@ rcube_webmail.prototype.acl_init_form = function(id)
li_elements.map(function() {
val = this.value;
td = $('td.'+this.id, row);
if (td && td.hasClass('enabled'))
if (td.length && td.hasClass('enabled'))
this.checked = true;
});

@ -233,7 +233,8 @@ class acl extends rcube_plugin
// Advanced rights
$attrib['id'] = 'advancedrights';
foreach ($supported as $idx => $val) {
foreach ($supported as $key => $val) {
$id = "acl$val";
$ul .= html::tag('li', null,
$input->show('', array(
'name' => "acl[$val]", 'value' => $val, 'id' => $id))

@ -13,9 +13,9 @@
<email>alec@alec.pl</email>
<active>yes</active>
</lead>
<date>2013-01-29</date>
<date>2013-03-01</date>
<version>
<release>1.1</release>
<release>1.2</release>
<api>0.7</api>
</version>
<stability>

Loading…
Cancel
Save