commit
defe00cc56
2
resources/assets/js/plugins/form.js
vendored
2
resources/assets/js/plugins/form.js
vendored
@ -493,10 +493,12 @@ export default class Form {
|
|||||||
|
|
||||||
// Form fields check validation issue
|
// Form fields check validation issue
|
||||||
onFail(error) {
|
onFail(error) {
|
||||||
|
if (error.request) {
|
||||||
if (error.request.status == 419) {
|
if (error.request.status == 419) {
|
||||||
window.location.href = '';
|
window.location.href = '';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof this.errors != "undefined") {
|
if (typeof this.errors != "undefined") {
|
||||||
this.errors.record(error.response.data.errors);
|
this.errors.record(error.response.data.errors);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user