MDL-73205 forms: handle AJAX error in dynamic/modal form submission.
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,7 +402,7 @@ export default class ModalForm {
|
||||
}
|
||||
return null;
|
||||
})
|
||||
.catch(this.onSubmitError);
|
||||
.catch(exception => this.onSubmitError(exception));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user