diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-31 09:07:54 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-31 09:07:54 +0000 |
| commit | 1054382d402054625039730b6f36a2f2e36fd251 (patch) | |
| tree | e90b472ae7947d478eabe1922acf8afe7146bcab /roundcubemail/program/steps/settings | |
| parent | b56aef6821d1ddf8b23431fd867e4e6b6ae8383d (diff) | |
- Added 'display_next' option
git-svn-id: https://svn.roundcube.net/trunk@2822 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings')
| -rw-r--r-- | roundcubemail/program/steps/settings/func.inc | 10 | ||||
| -rw-r--r-- | roundcubemail/program/steps/settings/save_prefs.inc | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc index f72b437c9..f833c1a5c 100644 --- a/roundcubemail/program/steps/settings/func.inc +++ b/roundcubemail/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/roundcubemail/program/steps/settings/save_prefs.inc b/roundcubemail/program/steps/settings/save_prefs.inc index 8430ffd88..910cab692 100644 --- a/roundcubemail/program/steps/settings/save_prefs.inc +++ b/roundcubemail/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, |
