aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-30 14:37:19 +0100
committerVincent Petry <pvince81@owncloud.com>2015-10-30 14:58:53 +0100
commit80cf4e84e32f09838e9f9e362568f02642ef7658 (patch)
tree3bcb07d844f1002b8027aa37f79db5f16ccf1643 /apps/files/js/files.js
parent73d9699be9d2a343b0573dc6a5bcc65f5f9c7303 (diff)
downloadnextcloud-server-80cf4e84e32f09838e9f9e362568f02642ef7658.tar.gz
nextcloud-server-80cf4e84e32f09838e9f9e362568f02642ef7658.zip
Fix file action download spinner
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js7
1 files changed, 6 insertions, 1 deletions
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);
}
};