mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Chat: Proper AJAX error/progress display
This commit is contained in:
parent
81cbd97484
commit
c529ff389c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user