summaryrefslogtreecommitdiff
path: root/program/steps/settings/edit_prefs.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-23 12:32:09 +0000
committeralecpl <alec@alec.pl>2009-09-23 12:32:09 +0000
commit1cead0cbf40468233f1f644ee6bf11835c74737a (patch)
treed62d415cd7daf6abdc00a320f429826bd563d706 /program/steps/settings/edit_prefs.inc
parentddc891db460ddabef3194f57177b4f9fb182210e (diff)
- sorting by message index - added 'index_sort' option (#1485936)
Diffstat (limited to 'program/steps/settings/edit_prefs.inc')
-rw-r--r--program/steps/settings/edit_prefs.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/program/steps/settings/edit_prefs.inc b/program/steps/settings/edit_prefs.inc
index 9fcbc426b..38343b55f 100644
--- a/program/steps/settings/edit_prefs.inc
+++ b/program/steps/settings/edit_prefs.inc
@@ -162,6 +162,17 @@ function rcmail_user_prefs_block($part, $attrib)
);
}
+ // Show checkbox for toggling 'index_sort'
+ if (!isset($no_override['index_sort'])) {
+ $field_id = 'rcmfd_indexsort';
+ $input_indexsort = new html_checkbox(array('name' => '_index_sort', 'id' => $field_id, 'value' => 1));
+
+ $blocks['list']['options']['index_sort'] = array(
+ 'title' => html::label($field_id, Q(rcube_label('indexsort'))),
+ 'content' => $input_indexsort->show($config['index_sort']?1:0),
+ );
+ }
+
// show drop-down for available skins
if (!isset($no_override['skin'])) {
$skins = rcmail_get_skins();