Author: leithoff
New Revision: 55079
URL: http://svn.stylite.de/viewvc/egroupware?rev=55079&view=rev
Log:
default css for preview, triggered by details/no details; remember selection with implicit pref
Modified:
trunk/mail/inc/class.mail_ui.inc.php
trunk/mail/templates/default/app.css
— trunk/mail/inc/class.mail_ui.inc.php (original)
+++ trunk/mail/inc/class.mail_ui.inc.php Fri Feb 19 13:23:06 2016
@@ -89,7 +89,7 @@
‘from’ => ‘from’, // lang(‘from’)
‘to’ => ‘to’, // lang(‘to’)
‘cc’ => ‘cc’, // lang(‘cc’)
-
'text' => 'whole message', // lang('whole message')
);
/**
@@ -523,6 +523,7 @@
$sel_options[‘cat_id’] = $this->searchTypes;
$sel_options[‘filter’] = $this->statusTypes;
$sel_options[‘filter2’] = array(’’=>‘No details’,1=>‘Details’);
-
$content[self::$nm_index]['filter2'] = $GLOBALS['egw_info']['user']['preferences']['mail']['ShowDetails'];
$etpl = new etemplate_new('mail.index');
// Start at 2 so auto-added copy+paste actions show up as second group
@@ -718,7 +719,7 @@
// sending preview toolbar actions
if ($content['mailSplitter']) $etpl->setElementAttribute('mailPreview[toolbar]', 'actions', $this->get_toolbar_actions());
-
//we use the category "filter" option as specifier where we want to search (quick, subject, from, to, etc. ....)
if (empty($content[self::$nm_index]['cat_id']) || empty($content[self::$nm_index]['search'])) $content[self::$nm_index]['cat_id']=(emailadmin_imapbase::$supportsORinQuery[$this->mail_bo->profileID]?'quick':'subject');
$readonlys = $preserv = array();
if (mail_bo::$debugTimes) mail_bo::logRunTimes($starttime,null,'',__METHOD__.__LINE__);
@@ -1320,6 +1321,12 @@
$filter[‘status’] = $query[‘filter’];
}
$reverse = ($query[‘sort’]==‘ASC’?false:true);
-
if (!isset($GLOBALS['egw_info']['user']['preferences']['mail']['ShowDetails']) || ($query['filter2'] !=$GLOBALS['egw_info']['user']['preferences']['mail']['ShowDetails']))
-
{
-
$GLOBALS['egw']->preferences->add('mail','ShowDetails',$query['filter2'],'user');
-
// save prefs
-
$GLOBALS['egw']->preferences->save_repository(true);
-
}
//error_log(__METHOD__.__LINE__.' maxMessages:'.$maxMessages.' Offset:'.$offset.' Filter:'.array2string($mail_ui->sessionData['messageFilter']));
try
{
— trunk/mail/templates/default/app.css (original)
+++ trunk/mail/templates/default/app.css Fri Feb 19 13:23:06 2016
@@ -135,6 +135,16 @@
{
font-size: 12px;
font-family : Arial;
+}
+
+.bodypreview {
- white-space: normal !important;
- max-height: 25px !important;
- font-size: 11px;
- font-style: italic;
- font-weight : normal !important;
- font-family: Arial;
- color: grey !important;
}
TR.sieveRowActive
@@ -891,4 +901,4 @@
/Avoid getting scrollbar on form area, let scrolling be handled by tree/
#mail-subscribe {
overflow: hidden;
-}
+}
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs