summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-21 12:46:11 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-21 12:46:11 +0000
commit78db9b1f6031272c7b3ff5452a3b454f4e7a26a6 (patch)
tree9ac7fa14c973ff2b9bc46033475aabcb3ef9b0a8 /roundcubemail/program
parent398e939c6ca8a5bbbfc488b81a4e3ed2114a8a7e (diff)
- Fix AJAX requests errors handler (#1485000)
git-svn-id: https://svn.roundcube.net/trunk@2410 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 24e871ab5..627ddf5b6 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3911,16 +3911,12 @@ function rcube_webmail()
// handle HTTP request errors
this.http_error = function(request, status, err)
{
- alert(status+":"+err);
-/*
- //alert('Error sending request: '+request_obj.url+' => HTTP '+request_obj.xmlhttp.status);
- if (request_obj.__lock)
- this.set_busy(false);
+ var errmsg = request.statusText;
- request_obj.reset();
- request_obj.__lock = false;
- this.display_message('Unknown Server Error!', 'error');
-*/
+ this.set_busy(false);
+ request.abort();
+
+ this.display_message('Unknown Server Error!' + (errmsg ? ' ('+errmsg+')' : ''), 'error');
};
// use an image to send a keep-alive siganl to the server