From 3f9edb4c3ec29b5b807d99da479333b62a406686 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 13 Jan 2006 12:14:38 -0500 Subject: [PATCH] Switched to full UTF-8 support --- program/js/app.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 4ed77fb..ad91e1f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -232,8 +232,10 @@ 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); }; -- Gitblit v1.9.1