aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-12-04 15:26:15 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-12-04 15:26:15 +0100
commit8cb0b6838d12fdd8395e1fa982286ef704351f7a (patch)
tree63254613a5380e9efebde37c5ee7ac1b2746ddcc
parent17a66b290c1f9c63dac8520603a2d8db9a63d970 (diff)
Add 400 errors handling.
Change-Id: I3d6c88f3aeec226e9114aaa5ce017717265251b5
-rw-r--r--app/dashboard/static/js/linaro-base-1.0.3.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/dashboard/static/js/linaro-base-1.0.3.js b/app/dashboard/static/js/linaro-base-1.0.3.js
index fd3ac64..9cfaac6 100644
--- a/app/dashboard/static/js/linaro-base-1.0.3.js
+++ b/app/dashboard/static/js/linaro-base-1.0.3.js
@@ -150,6 +150,9 @@ var JSBase = (function() {
},
'timeout': defaultTimeout,
'statusCode': {
+ 400: function() {
+ setErrorAlert(errorId + '-400', 404, errorReason);
+ },
403: function() {
setErrorAlert(errorId + '-403', 403, errorReason);
},