summaryrefslogtreecommitdiff
path: root/plugins/acl
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-01 17:45:43 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-01 17:45:43 +0100
commit2db42c7a3bf9a947f6a38dc87336968f592dc607 (patch)
tree56f6c0f6d155e70bbdcb78764008ce0d1ea13607 /plugins/acl
parenta6fd1578c3535b423e663ec910056413610a800b (diff)
Fixed ACL edition in advanced mode
Diffstat (limited to 'plugins/acl')
-rw-r--r--plugins/acl/acl.js2
-rw-r--r--plugins/acl/acl.php3
-rw-r--r--plugins/acl/package.xml4
3 files changed, 5 insertions, 4 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js
index b6e2c811d..d6934780f 100644
--- a/plugins/acl/acl.js
+++ b/plugins/acl/acl.js
@@ -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;
});
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index 18bac8e1b..938287b1a 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -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))
diff --git a/plugins/acl/package.xml b/plugins/acl/package.xml
index 578ab6138..52e234f37 100644
--- a/plugins/acl/package.xml
+++ b/plugins/acl/package.xml
@@ -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>