From dbdf2173ac90e5f1bf09a970f05a745dec73e2e1 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 2 Mar 2016 17:42:51 +0100 Subject: Return false on 401 in file list + trash file list This gives a chance to the global ajax error handler to do its work if the session expired. --- apps/files_trashbin/js/filelist.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files_trashbin/js') diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js index 5812aff82f7..feed28d8fc7 100644 --- a/apps/files_trashbin/js/filelist.js +++ b/apps/files_trashbin/js/filelist.js @@ -325,6 +325,10 @@ return false; } + if (result.status === 401) { + return false; + } + // Firewall Blocked request? if (result.status === 403) { // Go home -- cgit v1.2.3