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)
*

View File

@ -54,7 +54,7 @@
<checkbox align="center" id="${row}[acl_a]" />
<checkbox align="center" id="${row}[acl_recursive]"/>
<hbox orient=",0,0">
<button align="right" statustext="Delete this ACL" label="Delete" id="delete[${row}]" value="${row}" image="delete" onclick="return app.mail.acl_delete_btn();"/>
<button align="right" statustext="Delete this ACL" label="Delete" id="delete[${row}]" value="${row}" image="delete" onclick="app.mail.acl_delete_btn"/>
</hbox>
</row>
</rows>