From c14fa83e00a3a543e211ad25553c7bc584c43f41 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sun, 24 Apr 2011 04:15:20 -0400
Subject: [PATCH] - Remove cache buster from check-recent/keep-alive requests, it's already added by jQuery

---
 program/js/app.js |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index da13947..46aa7f0 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5430,14 +5430,7 @@
     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' && this.env.action != 'print')
-      this._int = setInterval(function(){ ref.send_keep_alive(); }, this.env.keep_alive * 1000);
-  };
-
-  // sends keep-alive signal to the server
-  this.send_keep_alive = function()
-  {
-    var d = new Date();
-    this.http_request('keep-alive', '_t='+d.getTime());
+      this._int = setInterval(function(){ ref.http_request('keep-alive'); }, this.env.keep_alive * 1000);
   };
 
   // sends request to check for recent messages
@@ -5446,7 +5439,7 @@
     if (this.busy)
       return;
 
-    var lock, addurl = '_t=' + (new Date().getTime()) + '&_mbox=' + urlencode(this.env.mailbox);
+    var lock, addurl = '_mbox=' + urlencode(this.env.mailbox);
 
     if (refresh) {
       lock = this.set_busy(true, 'checkingmail');

--
Gitblit v1.9.1