From 61248fd1cec9ffaafcb310f581c320622239b296 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 18 Jun 2010 16:44:27 -0400
Subject: [PATCH] - Don't call keep-alive on print page
---
program/js/app.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/program/js/app.js b/program/js/app.js
index 402e1f9..37bec82 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5078,9 +5078,9 @@
if (this._int)
clearInterval(this._int);
- if (this.env.keep_alive && !this.env.framed && this.task=='mail' && this.gui_objects.mailboxlist)
+ if (this.env.keep_alive && !this.env.framed && this.task == 'mail' && this.gui_objects.mailboxlist)
this._int = setInterval(function(){ ref.check_for_recent(false); }, this.env.keep_alive * 1000);
- else if (this.env.keep_alive && !this.env.framed && this.task!='login')
+ else if (this.env.keep_alive && !this.env.framed && this.task != 'login' && this.env.action != 'print')
this._int = setInterval(function(){ ref.send_keep_alive(); }, this.env.keep_alive * 1000);
};
--
Gitblit v1.9.1