diff options
author | thomascube <thomas@roundcube.net> | 2008-09-10 14:42:14 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-09-10 14:42:14 +0000 |
commit | f9365018cb8462a07bfc86dfe080cece956aacb5 (patch) | |
tree | 2966b5c343a26e0ed6a8c73e4b212900dc356cd0 /program | |
parent | 11a485deee62d79aed91db8fc6c1cc45d3b4871a (diff) |
Make xmlhttp requests asynchronous + show message on error
Diffstat (limited to 'program')
-rw-r--r-- | 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 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); }; |