[Vtigercrm-commits] [vtiger-commits] r6627 - /vtigercrm/trunk/modules/Webmails/webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sun May 28 11:28:26 EDT 2006
Author: mmbrich
Date: Sun May 28 09:28:25 2006
New Revision: 6627
Log:
more per-folder mail check stuff
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 Sun May 28 09:28:25 2006
@@ -101,6 +101,8 @@
var read = parseInt($(mbox+"_read").innerHTML);
$(mbox+"_read").innerHTML = (read+numnew);
+ var unread = parseInt($(mbox+"_unread").innerHTML);
+ $(mbox+"_unread").innerHTML = (unread+numnew);
}
}
}
@@ -122,7 +124,7 @@
method: 'post',
postBody: 'module=Webmails&action=WebmailsAjax&mailbox='+mbox+'&command=check_mbox&ajax=true',
onComplete: function(t) {
- //alert(t.responseText);
+ alert(t.responseText);
try {
var data = eval('(' + t.responseText + ')');
var read = parseInt($(mailbox+"_read").innerHTML);
@@ -250,10 +252,11 @@
);
}
function periodic_event() {
- window.clearTimeout(timer);
+ try {
check_for_new_mail(mailbox);
check_in_all_boxes(mailbox);
- timer = window.setTimeout("periodic_event()",box_refresh);
+ window.setTimeout("periodic_event()",box_refresh);
+ }catch(e){alert(e);}
}
function show_hidden() {
if(degraded_service == 'true') {
More information about the vtigercrm-commits
mailing list