mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Replace old dialog delete dialog with new dialog in addressbook edit popup
This commit is contained in:
parent
ce226a3197
commit
8f45c0e639
@ -78,6 +78,27 @@ app.classes.addressbook = AppJS.extend(
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creat a dialog for delete action in edit popup window.
|
||||||
|
*
|
||||||
|
* @param _action
|
||||||
|
* @param _senders
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
delete_contact: function(_action, _senders)
|
||||||
|
{
|
||||||
|
var that = this;
|
||||||
|
var buttonId = _senders.id;
|
||||||
|
var callbackDeleteDialog = function (button_id)
|
||||||
|
{
|
||||||
|
if (button_id == et2_dialog.YES_BUTTON )
|
||||||
|
{
|
||||||
|
that.et2._inst.submit(buttonId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
et2_dialog.show_dialog(callbackDeleteDialog, this.egw.lang("Do you really want to delete this contact?"),this.egw.lang("Delete"), {},et2_dialog.BUTTONS_YES_NO_CANCEL, et2_dialog.WARNING_MESSAGE);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add appointment or show calendar for selected contacts, call default nm_action after some checks
|
* Add appointment or show calendar for selected contacts, call default nm_action after some checks
|
||||||
*
|
*
|
||||||
|
@ -636,7 +636,7 @@
|
|||||||
<button label="Apply" id="button[apply]" class="button_apply" image="apply" background_image="1"/>
|
<button label="Apply" id="button[apply]" class="button_apply" image="apply" background_image="1"/>
|
||||||
<button label="Cancel" id="button[cancel]" class="button_cancel" onclick="if($cont[view] || false) return true; self.close(); return false;" image="cancel" background_image="1"/>
|
<button label="Cancel" id="button[cancel]" class="button_cancel" onclick="if($cont[view] || false) return true; self.close(); return false;" image="cancel" background_image="1"/>
|
||||||
<checkbox statustext="Apply changes to all members, whose fields have the same previous content" label="change all organisation members" id="change_org" span="all"/>
|
<checkbox statustext="Apply changes to all members, whose fields have the same previous content" label="change all organisation members" id="change_org" span="all"/>
|
||||||
<button align="left" label="Delete" id="button[delete]" class="button_delete" onclick="return confirm('Are you shure you want to delete this contact?');" tabindex="25" image="delete" background_image="1"/>
|
<button align="left" label="Delete" id="button[delete]" class="button_delete" onclick="app.addressbook.delete_contact" tabindex="25" image="delete" background_image="1"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
|
Loading…
Reference in New Issue
Block a user