[Vtigercrm-commits] [vtiger-commits] r6423 - in /vtigercrm/trunk: Smarty/templates/Webmails.tpl modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 25 11:34:51 EDT 2006
Author: mmbrich
Date: Thu May 25 09:34:49 2006
New Revision: 6423
Log:
unread mails are un-bolded when loaded now
Modified:
vtigercrm/trunk/Smarty/templates/Webmails.tpl
vtigercrm/trunk/modules/Webmails/ListView.php
Modified: vtigercrm/trunk/Smarty/templates/Webmails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Webmails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Webmails.tpl Thu May 25 09:34:49 2006
@@ -191,7 +191,7 @@
url = 'index.php?module=Webmails&action=EditView&record='+id;
break;
case 'create':
- url = 'index.php?module=Webmails&action=EditView';
+ url = 'index.php?module=Emails&action=EmailsAjax&file=EditView';
break;
case 'forward':
url = 'index.php?module=Webmails&action=EditView&record='+id+'&forward=true';
Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Thu May 25 09:34:49 2006
@@ -5,6 +5,10 @@
?>
<script type="text/javascript">
function load_webmail(mid) {
+ var node = $("row_"+mid);
+ var newhtml = remove(remove(node.innerHTML,'<b>'),'</b>');
+ node.innerHTML = newhtml;
+ var node = $("unread_img_"+mid).innerHTML = '<a href="javascript:;" onclick="OpenCompose(\''+mid+'\',\'reply\');"><img src="modules/Webmails/images/stock_mail-read.png" border="0" width="10" height="11"></a>';
$("from_addy").innerHTML = " "+webmail[mid]["from"];
$("to_addy").innerHTML = " "+webmail[mid]["to"];
$("webmail_subject").innerHTML = " "+webmail[mid]["subject"];
@@ -379,8 +383,8 @@
// read/unread/forwarded/replied
if(!$mails[$start_message]->seen || $mails[$start_message]->recent)
- {
- $flags.='<a href="sssindex.php?module=Webmails&action=DetailView&'.$detailParams.'"><img src="modules/Webmails/images/stock_mail-unread.png" border="0" width="10" height="14"></a> ';
+ {
+ $flags.='<span id="unread_img_'.$num.'"><a href="sssindex.php?module=Webmails&action=DetailView&'.$detailParams.'"><img src="modules/Webmails/images/stock_mail-unread.png" border="0" width="10" height="14"></a></span> ';
}
elseif ($mails[$start_message]->in_reply_to || $mails[$start_message]->references || preg_match("/^re:/i",$mails[$start_message]->subject))
$flags.='<a href="javascript:;" onclick="OpenCompose(\''.$mails[$start_message]->msgno.'\',\'reply\');"><img src="modules/Webmails/images/stock_mail-replied.png" border="0" width="10" height="12"></a> ';
More information about the vtigercrm-commits
mailing list