summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-01-13 17:14:38 +0000
committerthomascube <thomas@roundcube.net>2006-01-13 17:14:38 +0000
commit3f9edb4c3ec29b5b807d99da479333b62a406686 (patch)
treefdadd75e52549b059602a32ce22223929584e9aa /program/js/app.js
parentc0309556342871c2f65b5212ffdf35579d1ce7e6 (diff)
Switched to full UTF-8 support
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 4ed77fb3a..ad91e1fcb 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -232,8 +232,10 @@ function rcube_webmail()
this.display_message(this.pending_message[0], this.pending_message[1]);
// start interval for keep-alive/recent_check signal
- if (this.kepp_alive_interval)
- this.kepp_alive_int = setInterval(this.ref+'.'+(this.task=='mail'?'check_for_recent()':'send_keep_alive()'), this.kepp_alive_interval);
+ if (this.kepp_alive_interval && this.task=='mail' && this.gui_objects.messagelist)
+ this.kepp_alive_int = setInterval(this.ref+'.check_for_recent()', this.kepp_alive_interval);
+ else
+ this.kepp_alive_int = setInterval(this.ref+'.send_keep_alive()', this.kepp_alive_interval);
};