summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorcmcnulty <cmcnulty@kznf.com>2013-11-04 07:47:22 -0600
committercmcnulty <cmcnulty@kznf.com>2013-11-04 07:47:22 -0600
commitc99901fd16d18b27af716f4ec7a4e66df6208ac4 (patch)
tree81f2c5e807f1ce6edaffcd9440ab8cb64ca439c9 /program/steps/mail/func.inc
parent052a6a4d653ee061f3a9ff8abdb51102d5da44ce (diff)
style for focused messages
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 3c1c2bb65..43651ecaa 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -260,6 +260,8 @@ 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'];
@@ -309,6 +311,8 @@ 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;
@@ -336,7 +340,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null
return;
// remove 'threads', 'attachment', 'flag', 'status' columns, we don't need them here
- foreach (array('threads', 'attachment', 'flag', 'status', 'priority') as $col) {
+ foreach (array('threads', 'attachment', 'flag', 'status', 'priority', 'focus') as $col) {
if (($key = array_search($col, $a_show_cols)) !== FALSE)
unset($a_show_cols[$key]);
}
@@ -464,6 +468,7 @@ function rcmail_message_list_head($attrib, $a_show_cols)
case 'attachment':
case 'priority':
case 'status':
+ case 'focus':
$col_name = '<span class="' . $col .'">&nbsp;</span>';
break;
case 'threads':