From 80cf4e84e32f09838e9f9e362568f02642ef7658 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 30 Oct 2015 14:37:19 +0100 Subject: Fix file action download spinner --- apps/files/js/files.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/files/js/files.js') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 9ab7609cc40..ae38511ec05 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -295,7 +295,12 @@ } }; - OC.redirect(url + '&downloadStartSecret=' + randomToken); + if (url.indexOf('?') >= 0) { + url += '&'; + } else { + url += '?'; + } + OC.redirect(url + 'downloadStartSecret=' + randomToken); OC.Util.waitFor(checkForDownloadCookie, 500); } }; -- cgit v1.2.3