summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorCharles McNulty <cmcnulty@kznf.com>2013-11-04 11:01:55 -0800
committerCharles McNulty <cmcnulty@kznf.com>2013-11-04 11:01:55 -0800
commit48f65c6a7129073fb8c04abdfdaaee77dfd6709e (patch)
tree1fbea18bbc6a99ea3a4f6997ea799b67c9964634 /program
parent5a870688b082ec958c99a757139dd2e26b1f8233 (diff)
tiny-focus column for determining where focus should be
Diffstat (limited to 'program')
-rw-r--r--program/localization/en_US/labels.inc1
-rw-r--r--program/steps/mail/func.inc8
2 files changed, 3 insertions, 6 deletions
diff --git a/program/localization/en_US/labels.inc b/program/localization/en_US/labels.inc
index 8f221a3a9..8084365d3 100644
--- a/program/localization/en_US/labels.inc
+++ b/program/localization/en_US/labels.inc
@@ -53,6 +53,7 @@ $labels['size'] = 'Size';
$labels['priority'] = 'Priority';
$labels['organization'] = 'Organization';
$labels['readstatus'] = 'Read status';
+$labels['focus'] = 'Focus';
$labels['listoptions'] = 'List options...';
$labels['mailboxlist'] = 'Folders';
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index b5a8de408..0019d79c4 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -260,8 +260,6 @@ function rcmail_message_list($attrib)
array_unshift($a_show_cols, 'subject');
if (!in_array('threads', $a_show_cols))
array_unshift($a_show_cols, 'threads');
- if (!in_array('focus', $a_show_cols))
- array_unshift($a_show_cols, 'focus');
$_SESSION['skin_path'] = $CONFIG['skin_path'];
@@ -311,9 +309,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null
array_unshift($a_show_cols, 'subject');
if (!in_array('threads', $a_show_cols))
array_unshift($a_show_cols, 'threads');
- if (!in_array('focus', $a_show_cols))
- array_unshift($a_show_cols, 'focus');
-
+
$_SESSION['list_attrib']['columns'] = $a_show_cols;
// Make sure there are no duplicated columns (#1486999)
@@ -339,7 +335,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null
if (empty($a_headers))
return;
- // remove 'threads', 'attachment', 'flag', 'status' columns, we don't need them here
+ // remove 'threads', 'attachment', 'flag', 'status', 'focus' columns, we don't need them here
foreach (array('threads', 'attachment', 'flag', 'status', 'priority', 'focus') as $col) {
if (($key = array_search($col, $a_show_cols)) !== FALSE)
unset($a_show_cols[$key]);