Fix delete buttons with new dialog in mail ACL popup window

This commit is contained in:
Hadi Nategh
2013-11-29 14:59:34 +00:00
parent 8f45c0e639
commit e9a7228a95
2 changed files with 19 additions and 1 deletions

View File

@ -1963,6 +1963,24 @@ app.classes.mail = AppJS.extend(
request.sendRequest();
},
/**
*
*
*/
acl_delete_btn: function(_egw,_widget)
{
var that = this;
var buttonId = _widget.id;
var callbackAclDeleteDialog = function (button_id)
{
if (button_id == et2_dialog.YES_BUTTON )
{
that.et2._inst.submit(buttonId);
}
}
et2_dialog.show_dialog(callbackAclDeleteDialog, this.egw.lang("Do you really want to remove all rights from this account"),this.egw.lang("Delete"), {},et2_dialog.BUTTONS_YES_NO_CANCEL, et2_dialog.WARNING_MESSAGE);
},
/**
* Edit a folder acl for account(s)
*