summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/save.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-17 09:11:56 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-17 09:11:56 +0200
commite66a77e5601842a855963a25c3f4e229969c3392 (patch)
treec52631ea3f580cf36b0d2ce883e0011881155acc /program/steps/addressbook/save.inc
parente7cd99ca9e81e4f516576fff5954f68ce005cf7a (diff)
Fix contacts list update after adding/deleting/moving a contact (#1490028, #1490033)
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r--program/steps/addressbook/save.inc21
1 files changed, 2 insertions, 19 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index fd0517fe8..4f30fd4b7 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -235,29 +235,12 @@ else {
$CONTACTS->add_to_group($plugin['group_id'], $plugin['ids']);
}
}
- else {
- $counts = $CONTACTS->count();
- }
// show confirmation
$OUTPUT->show_message('successfullysaved', 'confirmation', null, false);
- // add contact row to the list
- if (empty($_REQUEST['_search']) && (string)$source === (string)$orig_source) {
- $CONTACTS->reset();
- $result = $CONTACTS->search($CONTACTS->primary_key, $insert_id);
-
- rcmail_js_contacts_list($result, 'parent.');
- $OUTPUT->command('parent.contact_list.select', rcube_utils::html_identifier($insert_id));
-
- // update record count display
- $CONTACTS->reset();
- $OUTPUT->command('parent.set_rowcount', rcmail_get_rowcount_text($counts));
- }
- // just refresh the list (#1490015)
- else {
- $OUTPUT->command('parent.command', 'list');
- }
+ $OUTPUT->command('parent.set_rowcount', $RCMAIL->gettext('loading'));
+ $OUTPUT->command('parent.list_contacts');
$OUTPUT->send('iframe');
}