Leave 422 handling to individual ajax calls
This commit is contained in:
parent
1961a86dfa
commit
668a6a4e90
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
$(document).ajaxError(function(event, response, ajaxSettings, thrownError) {
|
$(document).ajaxError(function(event, response, ajaxSettings, thrownError) {
|
||||||
switch (response.status) {
|
switch (response.status) {
|
||||||
|
case 422:
|
||||||
|
// we leave 422 handling to individual calls
|
||||||
|
break;
|
||||||
case 500:
|
case 500:
|
||||||
default:
|
default:
|
||||||
swal({
|
swal({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue