Chat: Proper AJAX error/progress display

This commit is contained in:
Adrian Moennich 2015-07-07 18:32:32 +02:00
parent 81cbd97484
commit c529ff389c

View File

@ -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;