From 145a02c54531442895076a965395fdce310197e6 Mon Sep 17 00:00:00 2001 From: roundcube Date: Fri, 13 Jan 2006 17:14:38 +0000 Subject: Switched to full UTF-8 support git-svn-id: https://svn.roundcube.net/trunk@102 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 4ed77fb3a..ad91e1fcb 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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); }; -- cgit v1.2.3