Leave 422 handling to individual ajax calls

This commit is contained in:
Ramon Gutierrez 2018-02-04 19:06:25 +08:00
parent 1961a86dfa
commit 668a6a4e90

View file

@ -1,6 +1,9 @@
$(function() {
$(document).ajaxError(function(event, response, ajaxSettings, thrownError) {
switch (response.status) {
case 422:
// we leave 422 handling to individual calls
break;
case 500:
default:
swal({