From e54bb72d30cfd88fcef5434b472fb3d9b2cca710 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 31 Jul 2009 09:07:54 +0000 Subject: - Added 'display_next' option --- program/steps/settings/func.inc | 10 +++++++++- program/steps/settings/save_prefs.inc | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'program/steps/settings') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index f72b437c9..f833c1a5c 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -258,13 +258,21 @@ function rcmail_user_prefs_block($part, $no_override, $attrib) $table->add(null, $input_inline_images->show($config['inline_images']?1:0)); } + // "display after delete" checkbox + if (!isset($no_override['display_next'])) { + $field_id = 'rcmfd_displaynext'; + $input_displaynext = new html_checkbox(array('name' => '_display_next', 'id' => $field_id, 'value' => 1)); + + $table->add('title', html::label($field_id, Q(rcube_label('displaynext')))); + $table->add(null, $input_displaynext->show($config['display_next']?1:0)); + } + $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); if ($table->size()) $out = html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('messagesdisplaying'))) . $table->show($attrib)); break; - // Mail composition case 'compose': $table = new html_table(array('cols' => 2)); diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index 8430ffd88..910cab692 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -29,6 +29,7 @@ $a_user_prefs = array( 'htmleditor' => isset($_POST['_htmleditor']) ? TRUE : FALSE, 'inline_images' => isset($_POST['_inline_images']) ? TRUE : FALSE, 'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE, + 'display_next' => isset($_POST['_display_next']) ? TRUE : FALSE, 'focus_on_new_message' => isset($_POST['_focus_on_new_message']) ? TRUE : FALSE, 'read_when_deleted' => isset($_POST['_read_when_deleted']) ? TRUE : FALSE, 'skip_deleted' => isset($_POST['_skip_deleted']) ? TRUE : FALSE, -- cgit v1.2.3