From 668a6a4e90b5066459aef62a702e1f1e769e4a7f Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Sun, 4 Feb 2018 19:06:25 +0800 Subject: [PATCH] Leave 422 handling to individual ajax calls --- public/assets/js/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/assets/js/common.js b/public/assets/js/common.js index 9dea7705..b0870d0c 100644 --- a/public/assets/js/common.js +++ b/public/assets/js/common.js @@ -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({