From 9704b4df5287b41dc80f83b032b406f664ae021c Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 1 Dec 2016 19:13:28 +0100 Subject: Catch status code 400 In case the server returns a statuscode 400 we should also gracefully return to the home directory. Signed-off-by: Lukas Reschke --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index fb0439114ed..a8daeadfd26 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1638,7 +1638,7 @@ return false; } - if (status === 404 || status === 405) { + if (status === 400 || status === 404 || status === 405) { // go back home this.changeDirectory('/'); return false; -- cgit v1.2.3