[Vtigercrm-commits] [vtiger-commits] r6713 - in /vtigercrm/trunk/modules/Webmails: WebmailsAjax.php webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 16:18:44 EDT 2006
Author: mmbrich
Date: Mon May 29 14:18:43 2006
New Revision: 6713
Log:
more fixes for mailbox tally
Modified:
vtigercrm/trunk/modules/Webmails/WebmailsAjax.php
vtigercrm/trunk/modules/Webmails/webmails.js
Modified: vtigercrm/trunk/modules/Webmails/WebmailsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/WebmailsAjax.php (original)
+++ vtigercrm/trunk/modules/Webmails/WebmailsAjax.php Mon May 29 14:18:43 2006
@@ -75,9 +75,9 @@
$boxes[$i]["name"] = $mailbox;
if($val == sizeof($search))
$boxes[$i]["newmsgs"] = 0;
- else {
- $boxes[$i]["newmsgs"] = (sizeof($search)-$val);
- $_SESSION["mailboxes"][$mailbox] = ($val+sizeof($search));
+ elseif($val < sizeof($search)) {
+ $boxes[$i]["newmsgs"] = (sizeof($search) - $val);
+ $_SESSION["mailboxes"][$key] = (sizeof($search));
}
$i++;
}
Modified: vtigercrm/trunk/modules/Webmails/webmails.js
==============================================================================
--- vtigercrm/trunk/modules/Webmails/webmails.js (original)
+++ vtigercrm/trunk/modules/Webmails/webmails.js Mon May 29 14:18:43 2006
@@ -99,7 +99,7 @@
if(mbox != mymbox) {
var mbox = data.msgs[i].msg.box;
var numnew = parseInt(data.msgs[i].msg.newmsgs);
-
+
var read = parseInt($(mbox+"_read").innerHTML);
$(mbox+"_read").innerHTML = (read+numnew);
var unread = parseInt($(mbox+"_unread").innerHTML);
More information about the vtigercrm-commits
mailing list