diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-02 14:44:28 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-02 14:44:28 +0000 |
| commit | c325b272256bcb015a85b33688caa2cc2401eae4 (patch) | |
| tree | d99a12c34aa6787457a5b56437bb5c9eb114e9ee /roundcubemail/program/steps/settings/save_identity.inc | |
| parent | 53ceff9e06567b39576591d2a4f82088e60468ee (diff) | |
Use iframes for identity management
git-svn-id: https://svn.roundcube.net/trunk@5686 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/save_identity.inc')
| -rw-r--r-- | roundcubemail/program/steps/settings/save_identity.inc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/settings/save_identity.inc b/roundcubemail/program/steps/settings/save_identity.inc index f88e732d9..0a06b424c 100644 --- a/roundcubemail/program/steps/settings/save_identity.inc +++ b/roundcubemail/program/steps/settings/save_identity.inc @@ -96,7 +96,7 @@ if ($_POST['_iid']) if ($_POST['_framed']) { // update the changed col in list - // ... + $OUTPUT->command('parent.update_identity_row', $iid, Q(trim($save_data['name'] . ' <' . rcube_idn_to_utf8($save_data['email']) .'>'))); } } else { @@ -135,6 +135,11 @@ else if (IDENTITIES_LEVEL < 2) if (!empty($_POST['_standard'])) $default_id = $insert_id; + + if ($_POST['_framed']) { + // add a new row to the list + $OUTPUT->command('parent.update_identity_row', $insert_id, Q(trim($save_data['name'] . ' <' . rcube_idn_to_utf8($save_data['email']) .'>')), true); + } } else { // show error message @@ -152,4 +157,8 @@ if ($default_id) $RCMAIL->user->set_default($default_id); // go to next step -rcmail_overwrite_action('identities'); +if (!empty($_REQUEST['_framed'])) { + rcmail_overwrite_action('edit-identity'); +} +else + rcmail_overwrite_action('identities'); |
