diff --git a/mail/js/app.js b/mail/js/app.js index 24d8641121..0f85c78c05 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -37,6 +37,19 @@ app.classes.mail = AppJS.extend( mail_fileSelectorWindow: null, mail_isMainWindow: true, + /** + * abbrevations for common access rights + * @array + * + */ + aclCommonRights:['lrs','lprs','ilprs', 'ilprws', 'akxeilprwts', 'custom'], + /** + * Demonstrates ACL rights + * @array + * + */ + aclRights:['l','r','s','w','i','p','c','d','a'], + /** * Initialize javascript for this application * @@ -2086,23 +2099,59 @@ app.classes.mail = AppJS.extend( }, /** + * Select the right combination of the rights for radio buttons from the selected common right * + * @param {widget} widget common right selectBox * */ - acl_delete_btn: function(_egw,_widget) + acl_common_rights_selector: function(widget) { - var that = this; - var buttonId = _widget.id; - var callbackAclDeleteDialog = function (button_id) + 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(""); + for (var i=0;i - + - - - - - - - - - + + + + + + + + +