Commit 189bb8de by Dányi Bence

webui: download link fixed with custom userAgent

parent a2ee4f5a
......@@ -350,6 +350,10 @@ $(function() {
* Downloads the specified file (or folder zipped)
*/
self.download = function(item) {
if(window.navigator.userAgent.indexOf('cloud-gui')>-1){
window.location.href = 'file:'+self.currentPath() + item.originalName;
return;
}
$.ajax({
type: 'POST',
data: 'dl=' + self.currentPath() + item.originalName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment