Fixed ACL edition in advanced mode

pull/60/head
Aleksander Machniak 12 years ago
parent a6fd1578c3
commit 2db42c7a3b

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

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

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

Loading…
Cancel
Save