From c529ff389c19ae967cb0d20617ea239ef4b52da1 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 7 Jul 2015 18:32:32 +0200 Subject: [PATCH] Chat: Proper AJAX error/progress display --- chat/indico_chat/static/js/chat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chat/indico_chat/static/js/chat.js b/chat/indico_chat/static/js/chat.js index 345a807..9fafd21 100644 --- a/chat/indico_chat/static/js/chat.js +++ b/chat/indico_chat/static/js/chat.js @@ -91,6 +91,7 @@ materialWidget.hide(); killProgress = IndicoUI.Dialogs.Util.progress(); }, + error: handleAjaxError, success: function(data) { if (handleAjaxError(data)) { return; @@ -127,6 +128,8 @@ type: 'POST', data: params, dataType: 'json', + error: handleAjaxError, + complete: IndicoUI.Dialogs.Util.progress(), success: function(data) { if (handleAjaxError(data)) { return;