| | |
| | | | program/steps/addressbook/groups.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2010, Roundcube Dev. - Switzerland | |
| | | | Copyright (C) 2010, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | |
| | | if ($created && $OUTPUT->ajax_call) { |
| | | $OUTPUT->show_message('groupcreated', 'confirmation'); |
| | | $OUTPUT->command('insert_contact_group', array('source' => $created)); |
| | | $OUTPUT->command('insert_contact_group', array( |
| | | 'source' => $source, 'id' => $created['id'], 'name' => $created['name'])); |
| | | } |
| | | else if (!$created) { |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error'); |
| | |
| | | |
| | | if ($newname && $OUTPUT->ajax_call) { |
| | | $OUTPUT->show_message('grouprenamed', 'confirmation'); |
| | | $OUTPUT->command('update_contact_group', array('source' => $source, 'id' => $gid, 'name' => $newname)); |
| | | $OUTPUT->command('update_contact_group', array( |
| | | 'source' => $source, 'id' => $gid, 'name' => $newname)); |
| | | } |
| | | else if (!$newname) |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error'); |