mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix mail ACL rights selector
This commit is contained in:
parent
7d09589f73
commit
e670459122
@ -2579,10 +2579,10 @@ app.classes.mail = AppJS.extend(
|
|||||||
acl_common_rights_selector: function(event,widget)
|
acl_common_rights_selector: function(event,widget)
|
||||||
{
|
{
|
||||||
var rowId = widget.id.replace(/[^0-9.]+/g, '');
|
var rowId = widget.id.replace(/[^0-9.]+/g, '');
|
||||||
var rights = (widget.value == "custom")?[]:(widget.value == "akxeilprwts")? widget.value.replace(/[k,x,t,e]/g,"cd").split(""):widget.value.split("");
|
var rights = (widget.get_value() == "custom")?[]:(widget.get_value() == "akxeilprwts")? widget.get_value().replace(/[k,x,t,e]/g,"cd").split(""):widget.get_value().split("");
|
||||||
for (var i=0;i<this.aclRights.length;i++)
|
for (var i=0;i<this.aclRights.length;i++)
|
||||||
{
|
{
|
||||||
rightsWidget = this.et2.getWidgetById(rowId+'[acl_' + this.aclRights[i]+ ']');
|
var rightsWidget = this.et2.getWidgetById(rowId+'[acl_' + this.aclRights[i]+ ']');
|
||||||
rightsWidget.set_value((jQuery.inArray(this.aclRights[i],rights) != -1 )?true:false);
|
rightsWidget.set_value((jQuery.inArray(this.aclRights[i],rights) != -1 )?true:false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2603,7 +2603,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
|
|
||||||
for (var i=0;i<this.aclRights.length;i++)
|
for (var i=0;i<this.aclRights.length;i++)
|
||||||
{
|
{
|
||||||
rightsWidget = this.et2.getWidgetById(rowId+'[acl_' + this.aclRights[i]+ ']');
|
var rightsWidget = this.et2.getWidgetById(rowId+'[acl_' + this.aclRights[i]+ ']');
|
||||||
if (rightsWidget.get_value() == "true")
|
if (rightsWidget.get_value() == "true")
|
||||||
rights += this.aclRights[i];
|
rights += this.aclRights[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user