diff options
author | thomascube <thomas@roundcube.net> | 2012-01-02 14:44:28 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-01-02 14:44:28 +0000 |
commit | 7c2a9310c4104f51fcf56379dcc3511fa5bfae2d (patch) | |
tree | f7ce98283b0c3ce29d0e375e55c8fe7aaee1a677 /program/steps/settings/save_identity.inc | |
parent | c6db4aa46bd285ef7b3d63cba5e957373a116485 (diff) |
Use iframes for identity management
Diffstat (limited to 'program/steps/settings/save_identity.inc')
-rw-r--r-- | program/steps/settings/save_identity.inc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc index f88e732d9..0a06b424c 100644 --- a/program/steps/settings/save_identity.inc +++ b/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'); |