mirror of
https://github.com/pretix/pretix.git
synced 2026-08-20 12:26:27 +00:00
Re-run form handlers when validation of an async form fails
This commit is contained in:
@@ -61,6 +61,7 @@ function async_task_check_error(jqXHR, textStatus, errorThrown) {
|
|||||||
jqXHR.responseText.indexOf("<body"),
|
jqXHR.responseText.indexOf("<body"),
|
||||||
jqXHR.responseText.indexOf("</body")
|
jqXHR.responseText.indexOf("</body")
|
||||||
));
|
));
|
||||||
|
form_handlers($("body"));
|
||||||
} else if (c.length > 0) {
|
} else if (c.length > 0) {
|
||||||
// This is some kind of 500/404/403 page, show it in an overlay
|
// This is some kind of 500/404/403 page, show it in an overlay
|
||||||
$("body").data('ajaxing', false);
|
$("body").data('ajaxing', false);
|
||||||
@@ -134,6 +135,7 @@ function async_task_error(jqXHR, textStatus, errorThrown) {
|
|||||||
jqXHR.responseText.indexOf("<body"),
|
jqXHR.responseText.indexOf("<body"),
|
||||||
jqXHR.responseText.indexOf("</body")
|
jqXHR.responseText.indexOf("</body")
|
||||||
));
|
));
|
||||||
|
form_handlers($("body"));
|
||||||
} else if (c.length > 0) {
|
} else if (c.length > 0) {
|
||||||
waitingDialog.hide();
|
waitingDialog.hide();
|
||||||
ajaxErrDialog.show(c.first().html());
|
ajaxErrDialog.show(c.first().html());
|
||||||
|
|||||||
Reference in New Issue
Block a user