From: Michael M Slusarz Date: Wed, 7 Oct 2009 09:11:15 +0000 (-0600) Subject: Alter flag text color based on background color in dimp X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1f961429aad2156d880666b310371575d2ab7b38;p=horde.git Alter flag text color based on background color in dimp --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 55665c346..1220bc75e 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -477,7 +477,7 @@ var DimpBase = { /* Until text-overflow is supported on all * browsers, need to truncate label text * ourselves. */ - ptr.elt = '' + ptr.l.truncate(10) + ''; + ptr.elt = '' + ptr.l.truncate(10) + ''; } row.subjectdata += ptr.elt; } else { diff --git a/imp/templates/javascript_defs_dimp.php b/imp/templates/javascript_defs_dimp.php index 80390046c..9cdce8836 100644 --- a/imp/templates/javascript_defs_dimp.php +++ b/imp/templates/javascript_defs_dimp.php @@ -29,10 +29,11 @@ foreach ($dimp_block_list as $block) { /* Generate flag array. */ $imp_flags = IMP_Imap_Flags::singleton(); -foreach ($imp_flags->getList() as $val) { +foreach ($imp_flags->getList(array('fgcolor' => true)) as $val) { $flags[$val['flag']] = array_filter(array( 'b' => isset($val['b']) ? $val['b'] : null, 'c' => $val['c'], + 'f' => $val['f'], 'l' => $val['l'], 'n' => isset($val['n']) ? $val['n'] : null, // Indicate if this is a user *P*ref flag