diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-18 15:40:17 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-18 15:40:17 +0200 |
commit | ca00d37a710673fa359daf1817da78787a137f01 (patch) | |
tree | 1b5bc7c7b060b8ebbdebb26148bc56c79ffd13ec /files/js/files.js | |
parent | 235b647fe11ec50e86675de4647cfc212d87b58a (diff) | |
download | nextcloud-server-ca00d37a710673fa359daf1817da78787a137f01.tar.gz nextcloud-server-ca00d37a710673fa359daf1817da78787a137f01.zip |
Make the download button work
Diffstat (limited to 'files/js/files.js')
-rw-r--r-- | files/js/files.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/files/js/files.js b/files/js/files.js index 906f33a9dd9..4bf1c77fdbd 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -99,6 +99,20 @@ $(document).ready(function() { } return false; }); + + $('.download').click(function(event) { + var files=''; + $('td.selection input:checkbox:checked').parent().parent().children('.filename').each(function(i,element){ + files+=';'+$(element).text(); + }); + files=files.substr(1);//remove leading ; + + //send the browser to the download location + var dir=$('#dir').val()||'/'; +// alert(files); + window.location='ajax/download.php?files='+files+'&dir='+dir; + return false; + }); }); function uploadFinished() { |