From 6c0b1fde43a79d2c31b3f1fc94868e67936280ea Mon Sep 17 00:00:00 2001 From: cmcnulty Date: Wed, 6 Nov 2013 22:04:09 -0600 Subject: Move focus column to the left-most side --- config/defaults.inc.php | 2 +- program/localization/en_US/labels.inc | 1 - program/steps/mail/func.inc | 11 +++++++++-- skins/larry/templates/mail.html | 1 - 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/config/defaults.inc.php b/config/defaults.inc.php index b430e1d19..ab0e188bd 100644 --- a/config/defaults.inc.php +++ b/config/defaults.inc.php @@ -496,7 +496,7 @@ $config['message_sort_order'] = 'DESC'; // These cols are shown in the message list. Available cols are: // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority' -$config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment', 'focus'); +$config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment'); // the default locale setting (leave empty for auto-detection) // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR diff --git a/program/localization/en_US/labels.inc b/program/localization/en_US/labels.inc index 8084365d3..8f221a3a9 100644 --- a/program/localization/en_US/labels.inc +++ b/program/localization/en_US/labels.inc @@ -53,7 +53,6 @@ $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 0019d79c4..4cc578751 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -255,12 +255,16 @@ function rcmail_message_list($attrib) // save some variables for use in ajax list $_SESSION['list_attrib'] = $attrib; + // make sure 'threads' and 'subject' columns are present if (!in_array('subject', $a_show_cols)) array_unshift($a_show_cols, 'subject'); if (!in_array('threads', $a_show_cols)) array_unshift($a_show_cols, 'threads'); + // always put focus first + array_unshift($a_show_cols, 'focus'); + $_SESSION['skin_path'] = $CONFIG['skin_path']; // set client env @@ -303,13 +307,16 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null } $mbox = $RCMAIL->storage->get_folder(); - + // make sure 'threads' and 'subject' columns are present if (!in_array('subject', $a_show_cols)) array_unshift($a_show_cols, 'subject'); if (!in_array('threads', $a_show_cols)) array_unshift($a_show_cols, 'threads'); - + + // always put focus first + array_unshift($a_show_cols, 'focus'); + $_SESSION['list_attrib']['columns'] = $a_show_cols; // Make sure there are no duplicated columns (#1486999) diff --git a/skins/larry/templates/mail.html b/skins/larry/templates/mail.html index 640c73950..f60fe2a3f 100644 --- a/skins/larry/templates/mail.html +++ b/skins/larry/templates/mail.html @@ -192,7 +192,6 @@
  • -
  • -- cgit v1.2.3