summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-10 14:42:14 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-10 14:42:14 +0000
commiteb49b9da9723f996b605ab61f822b82dc711d1a7 (patch)
tree2bccd10322f8fac6fabc0a0a808f7282238c8729
parenta2398356318c280d88a4de0d09022f76ca577099 (diff)
Make xmlhttp requests asynchronous + show message on error
git-svn-id: https://svn.roundcube.net/trunk@1758 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index e533e7bde..9e10811d5 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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);
};