diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-18 12:18:17 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-18 12:18:17 +0200 |
commit | 00e6dd9e20727d13abd0e379e99b9f22855c3d19 (patch) | |
tree | 765af522b2fa90e80040e41d4a7b82ccac9447cb /hyperkitty/static | |
parent | a6cc5ed7ac9e95a4e21c49f9159c66ff9a726600 (diff) | |
download | hyperkitty-00e6dd9e20727d13abd0e379e99b9f22855c3d19.tar.gz hyperkitty-00e6dd9e20727d13abd0e379e99b9f22855c3d19.tar.xz hyperkitty-00e6dd9e20727d13abd0e379e99b9f22855c3d19.zip |
Don't alert on error when the AJAX request is cancelled
Diffstat (limited to 'hyperkitty/static')
-rw-r--r-- | hyperkitty/static/js/hyperkitty.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js index ee30c74..fc8e461 100644 --- a/hyperkitty/static/js/hyperkitty.js +++ b/hyperkitty/static/js/hyperkitty.js @@ -377,7 +377,9 @@ function update_thread_replies(url) { } }, error: function(jqXHR, textStatus, errorThrown) { - alert(jqXHR.responseText); + if (jqXHR.responseText !== "") { + alert(jqXHR.responseText); + } } }); } |