MDL-73205 forms: handle AJAX error in dynamic/modal form submission.

This commit is contained in:
Paul Holden
2021-11-29 18:36:38 +00:00
parent 2fd9b4b822
commit b005d5d510
6 changed files with 7 additions and 7 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -247,7 +247,7 @@ export default class DynamicForm {
})
.then((resp) => this.updateForm(resp))
.finally(pendingPromise.resolve)
.catch(this.onSubmitError);
.catch(exception => this.onSubmitError(exception));
}
/**
@@ -389,6 +389,6 @@ export default class DynamicForm {
}
return null;
})
.catch(this.onSubmitError);
.catch(exception => this.onSubmitError(exception));
}
}
+1 -1
View File
@@ -402,7 +402,7 @@ export default class ModalForm {
}
return null;
})
.catch(this.onSubmitError);
.catch(exception => this.onSubmitError(exception));
}
/**