[Vtigercrm-commits] [vtiger-commits] r6728 - /vtigercrm/trunk/modules/Webmails/webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 19:01:48 EDT 2006
Author: mmbrich
Date: Mon May 29 17:01:47 2006
New Revision: 6728
Log:
more mail check cleanups
Modified:
vtigercrm/trunk/modules/Webmails/webmails.js
Modified: vtigercrm/trunk/modules/Webmails/webmails.js
==============================================================================
--- vtigercrm/trunk/modules/Webmails/webmails.js (original)
+++ vtigercrm/trunk/modules/Webmails/webmails.js Mon May 29 17:01:47 2006
@@ -91,10 +91,9 @@
if(t.responseText != "") {
var data = eval('(' + t.responseText + ')');
for (var i=0;i<data.msgs.length;i++) {
- if(mbox != mymbox) {
- var mbox = data.msgs[i].msg.box;
+ var mbox = data.msgs[i].msg.box;
+ if(mbox != mailbox) {
var numnew = parseInt(data.msgs[i].msg.newmsgs);
-
var read = parseInt($(mbox+"_read").innerHTML);
$(mbox+"_read").innerHTML = (read+numnew);
@@ -232,12 +231,12 @@
tr.style.display='none';
var tels = $("message_table").childNodes[1].childNodes;
for(var j=0;j<tels.length;j++) {
- try {
- if(tels[j].id.match(/row_/)) {
- $("message_table").childNodes[1].insertBefore(tr,tels[j]);
+ try {
+ if(tels[j].id.match(/row_/)) {
+ $("message_table").childNodes[1].insertBefore(tr,tels[j]);
break;
- }
- }catch(e){}
+ }
+ }catch(f){}
}
new Effect.Appear("row_"+mailid);
}
More information about the vtigercrm-commits
mailing list