From 00e6dd9e20727d13abd0e379e99b9f22855c3d19 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Sat, 18 May 2013 12:18:17 +0200 Subject: Don't alert on error when the AJAX request is cancelled --- hyperkitty/static/js/hyperkitty.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hyperkitty/static/js') 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); + } } }); } -- cgit