cmcnulty
2013-11-06 6c0b1fde43a79d2c31b3f1fc94868e67936280ea
Move focus column to the left-most side
4 files modified
11 ■■■■ changed files
config/defaults.inc.php 2 ●●● patch | view | raw | blame | history
program/localization/en_US/labels.inc 1 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 7 ●●●●● patch | view | raw | blame | history
skins/larry/templates/mail.html 1 ●●●● patch | view | raw | blame | history
config/defaults.inc.php
@@ -496,7 +496,7 @@
// 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
program/localization/en_US/labels.inc
@@ -53,7 +53,6 @@
$labels['priority'] = 'Priority';
$labels['organization'] = 'Organization';
$labels['readstatus'] = 'Read status';
$labels['focus'] = 'Focus';
$labels['listoptions'] = 'List options...';
$labels['mailboxlist'] = 'Folders';
program/steps/mail/func.inc
@@ -255,11 +255,15 @@
  // 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'];
@@ -310,6 +314,9 @@
  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)
skins/larry/templates/mail.html
@@ -192,7 +192,6 @@
            <li><label><input type="checkbox" name="list_col[]" value="attachment" /> <span><roundcube:label name="attachment" /></span></label></li>
            <li><label><input type="checkbox" name="list_col[]" value="flag" /> <span><roundcube:label name="flag" /></span></label></li>
            <li><label><input type="checkbox" name="list_col[]" value="priority" /> <span><roundcube:label name="priority" /></span></label></li>
            <li><label><input type="checkbox" name="list_col[]" value="focus" /> <span><roundcube:label name="focus" /></span></label></li>
        </ul>
    </fieldset>
    <roundcube:endif />