diff options
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/settings/edit_identity.inc | 1 | ||||
-rw-r--r-- | program/steps/settings/identities.inc | 2 | ||||
-rw-r--r-- | program/steps/settings/save_identity.inc | 13 |
3 files changed, 13 insertions, 3 deletions
diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc index f0c477673..188d1073d 100644 --- a/program/steps/settings/edit_identity.inc +++ b/program/steps/settings/edit_identity.inc @@ -151,6 +151,7 @@ function rcube_identity_form($attrib) $OUTPUT->include_script('list.js'); $OUTPUT->add_handler('identityform', 'rcube_identity_form'); $OUTPUT->set_env('identities_level', IDENTITIES_LEVEL); +$OUTPUT->add_label('deleteidentityconfirm'); $OUTPUT->set_pagetitle(rcube_label(($RCMAIL->action=='add-identity' ? 'newidentity' : 'edititem'))); diff --git a/program/steps/settings/identities.inc b/program/steps/settings/identities.inc index 6fc2cc179..95ff31a42 100644 --- a/program/steps/settings/identities.inc +++ b/program/steps/settings/identities.inc @@ -22,7 +22,6 @@ define('IDENTITIES_LEVEL', intval($RCMAIL->config->get('identities_level', 0))); $OUTPUT->set_pagetitle(rcube_label('identities')); - $OUTPUT->include_script('list.js'); @@ -43,5 +42,6 @@ function rcmail_identity_frame($attrib) $OUTPUT->add_handler('identityframe', 'rcmail_identity_frame'); $OUTPUT->set_env('identities_level', IDENTITIES_LEVEL); +$OUTPUT->add_label('deleteidentityconfirm'); $OUTPUT->send('identities'); 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'); |