From f9365018cb8462a07bfc86dfe080cece956aacb5 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 10 Sep 2008 10:42:14 -0400 Subject: [PATCH] Make xmlhttp requests asynchronous + show message on error --- program/js/app.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index e533e7b..9e10811 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3816,6 +3816,7 @@ request_obj.reset(); request_obj.__lock = false; + this.display_message('Unknown Serer Error!', 'error'); }; @@ -3980,7 +3981,7 @@ this.busy = true; this.xmlhttp.onreadystatechange = function(){ _ref.xmlhttp_onreadystatechange(); }; - this.xmlhttp.open('GET', url); + this.xmlhttp.open('GET', url, true); this.xmlhttp.setRequestHeader('X-RoundCube-Referer', bw.get_cookie('roundcube_sessid')); this.xmlhttp.send(null); }; -- Gitblit v1.9.1