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/js/filelist.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 95fdac02c2d..fcdf6caaa59 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1436,6 +1436,10 @@ delete this._reloadCall; this.hideMask(); + if (status === 401) { + return false; + } + // Firewall Blocked request? if (status === 403) { // Go home -- cgit v1.2.3