summaryrefslogtreecommitdiff
path: root/program/steps/settings/responses.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-31 16:57:58 +0100
committerAleksander Machniak <alec@alec.pl>2013-12-31 16:57:58 +0100
commitd575e46067c06f1165adb249865f3812e270df12 (patch)
tree5bff2b96c4d3756555fdfc511d1a0186b88a0854 /program/steps/settings/responses.inc
parentf5d2eef55c89b7f1a5549704705c25fd7f0c0185 (diff)
CS fixes
Diffstat (limited to 'program/steps/settings/responses.inc')
-rw-r--r--program/steps/settings/responses.inc19
1 files changed, 9 insertions, 10 deletions
diff --git a/program/steps/settings/responses.inc b/program/steps/settings/responses.inc
index 45d1405f7..fcc9c9a10 100644
--- a/program/steps/settings/responses.inc
+++ b/program/steps/settings/responses.inc
@@ -51,7 +51,6 @@ if (!empty($_POST['_insert'])) {
$RCMAIL->output->send();
}
-
if ($RCMAIL->action == 'delete-response') {
if ($key = rcube_utils::get_input_value('_key', rcube_utils::INPUT_GPC)) {
$responses = $RCMAIL->get_compose_responses(false, true);
@@ -80,6 +79,14 @@ if ($RCMAIL->action == 'delete-response') {
$OUTPUT->set_pagetitle($RCMAIL->gettext('responses'));
$OUTPUT->include_script('list.js');
+$OUTPUT->add_handlers(array(
+ 'responseframe' => 'rcmail_response_frame',
+ 'responseslist' => 'rcmail_responses_list',
+));
+$OUTPUT->add_label('deleteresponseconfirm');
+
+$OUTPUT->send('responses');
+
/**
*
@@ -105,7 +112,6 @@ function rcmail_responses_list($attrib)
return $out;
}
-
// similar function as /steps/addressbook/func.inc::rcmail_contact_frame()
function rcmail_response_frame($attrib)
{
@@ -116,13 +122,6 @@ function rcmail_response_frame($attrib)
}
$OUTPUT->set_env('contentframe', $attrib['id']);
+
return $OUTPUT->frame($attrib, true);
}
-
-$OUTPUT->add_handlers(array(
- 'responseframe' => 'rcmail_response_frame',
- 'responseslist' => 'rcmail_responses_list',
-));
-$OUTPUT->add_label('deleteresponseconfirm');
-
-$OUTPUT->send('responses');