diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-03-07 14:15:02 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-03-07 14:15:02 +0100 |
commit | 4a4f705adc32831c4e90422598dbe0e89c6acd80 (patch) | |
tree | e3107d1554f22b878eea29005cf183e487882a1e /apps/files/js | |
parent | 97222b1de5349ac31abf518b7fd762b24947e237 (diff) | |
download | nextcloud-server-4a4f705adc32831c4e90422598dbe0e89c6acd80.tar.gz nextcloud-server-4a4f705adc32831c4e90422598dbe0e89c6acd80.zip |
json encode list of files
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/files.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 464f7703685..a4ef41c2803 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -220,14 +220,15 @@ $(document).ready(function() { }); $('.download').click('click',function(event) { - var files=getSelectedFiles('name').join(';'); + var files=getSelectedFiles('name'); + var fileslist = JSON.stringify(files); var dir=$('#dir').val()||'/'; OC.Notification.show(t('files','Your download is being prepared. This might take some time if the files are big.')); // use special download URL if provided, e.g. for public shared files if ( (downloadURL = document.getElementById("downloadURL")) ) { window.location=downloadURL.value+"&download&files="+files; } else { - window.location=OC.filePath('files', 'ajax', 'download.php') + '?'+ $.param({ dir: dir, files: files }); + window.location=OC.filePath('files', 'ajax', 'download.php') + '?'+ $.param({ dir: dir, files: fileslist }); } return false; }); |