diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-11-12 14:50:49 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-11-12 14:50:49 +0100 |
commit | f226549d4f8f258deca9e165ef857252b79d2ee0 (patch) | |
tree | bad464a81324dfa1272551670a7d561e618a8723 /program/js | |
parent | a95687cfe8ede73033912848d445bb63257d850a (diff) |
Renamed config options: keep_alive to refresh_interval, min_keep_alive to min_refresh_interval
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 25fddf10c..fb9c299ec 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -44,7 +44,6 @@ function rcube_webmail() this.identifier_expr = new RegExp('[^0-9a-z\-_]', 'gi'); // default environment vars - this.env.keep_alive = 60; // seconds this.env.request_timeout = 180; // seconds this.env.draft_autosave = 0; // seconds this.env.comm_path = './'; @@ -6488,13 +6487,13 @@ function rcube_webmail() // starts interval for refresh signal this.start_refresh = function() { - if (!this.env.keep_alive || this.env.framed || this.env.extwin || this.task == 'login' || this.env.action == 'print') + if (!this.env.refresh_interval || this.env.framed || this.env.extwin || this.task == 'login' || this.env.action == 'print') return; if (this._refresh) clearInterval(this._refresh); - this._refresh = setInterval(function(){ ref.refresh(); }, this.env.keep_alive * 1000); + this._refresh = setInterval(function(){ ref.refresh(); }, this.env.refresh_interval * 1000); }; // sends keep-alive signal |