diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-22 16:54:01 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-22 16:54:01 +0100 |
commit | ad1167a44d4196b751766c9b05517640be6d2f10 (patch) | |
tree | ea38b675167476afe6c0ca61bc192deabfda8c66 /apps/files/js/detailsview.js | |
parent | 86581f66265be0dddb97f67ac867a5cb92d335e0 (diff) | |
download | nextcloud-server-ad1167a44d4196b751766c9b05517640be6d2f10.tar.gz nextcloud-server-ad1167a44d4196b751766c9b05517640be6d2f10.zip |
Detect user navigating away, don't interpret as ajax error
Whenever a user navigates away, all ajax calls will fail with the same
result like a cross-domain redirect (SSO). To distinguish these cases,
we need to detect whether the error is a result of the user navigating
away. For this, we introduce a new flag that will be set in
"beforeunload".
Additional handling was required for false positives in case "beforeunload" is
used (ex: cancelled upload) and the user cancelled the navigation.
Diffstat (limited to 'apps/files/js/detailsview.js')
0 files changed, 0 insertions, 0 deletions