Fix add-contact and contact-delete actions

This commit is contained in:
Aleksander Machniak
2018-01-30 09:05:03 +01:00
parent edeb5d7ab4
commit dfc835eb38

View File

@@ -1020,6 +1020,10 @@ function rcube_webmail()
break;
case 'add-contact':
this.add_contact(props);
break;
case 'load-remote':
if (this.env.uid) {
if (props && this.env.sender) {
@@ -5452,8 +5456,6 @@ function rcube_webmail()
{
if (value)
this.http_post('addcontact', {_address: value, _reload: reload});
return true;
};
// send remote request to search mail or contacts
@@ -6412,11 +6414,12 @@ function rcube_webmail()
{
var undelete = this.env.source && this.env.address_sources[this.env.source].undelete;
if (!undelete) {
if (undelete)
this._with_selected_contacts('delete');
else
this.confirm_dialog(this.get_label('deletecontactconfirm'), 'delete', function() {
ref._with_selected_contacts('delete');
});
}
ref._with_selected_contacts('delete');
});
};
this._with_selected_contacts = function(action, post_data)