summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-02 10:13:58 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-02 10:13:58 +0100
commit01adefaf509840cfa7212b654e69a1d291228a5e (patch)
tree91375b98bd5dcaad9e199de55f89c55c37882928 /apps/files/js
parentb6ca23afe13304f904811d510a8e843a4ea832e9 (diff)
parent80cf4e84e32f09838e9f9e362568f02642ef7658 (diff)
downloadnextcloud-server-01adefaf509840cfa7212b654e69a1d291228a5e.tar.gz
nextcloud-server-01adefaf509840cfa7212b654e69a1d291228a5e.zip
Merge pull request #20181 from owncloud/files-fixdownloadspinner
Fix file action download spinner
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/fileactions.js2
-rw-r--r--apps/files/js/files.js7
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 079c5330ec2..6a767d48a28 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -589,7 +589,7 @@
context.fileList.showFileBusyState(filename, false);
};
- context.fileList.showFileBusyState(downloadFileaction, true);
+ context.fileList.showFileBusyState(filename, true);
OCA.Files.Files.handleDownload(url, disableLoadingState);
}
}
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);
}
};