From f9365018cb8462a07bfc86dfe080cece956aacb5 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 10 Sep 2008 14:42:14 +0000 Subject: Make xmlhttp requests asynchronous + show message on error --- program/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/js/app.js') diff --git a/program/js/app.js b/program/js/app.js index e533e7bde..9e10811d5 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3816,6 +3816,7 @@ function rcube_webmail() request_obj.reset(); request_obj.__lock = false; + this.display_message('Unknown Serer Error!', 'error'); }; @@ -3980,7 +3981,7 @@ function rcube_http_request() 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); }; -- cgit v1.2.3