diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-04-08 18:38:24 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-04-08 18:38:24 +0200 |
commit | 7554374c5c0267bed8bfe17a9f22f16e70f86474 (patch) | |
tree | f877d59a64f01f4bfcb62adcb33d4a7fad483874 | |
parent | 140a65e11b4a6e42e1069c1cc5c32a0a7f6aa61b (diff) | |
download | nextcloud-server-7554374c5c0267bed8bfe17a9f22f16e70f86474.tar.gz nextcloud-server-7554374c5c0267bed8bfe17a9f22f16e70f86474.zip |
Added missing var that messes up IE8
-rw-r--r-- | apps/files/js/files.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 87486c82bc7..af5ae964504 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -230,7 +230,8 @@ $(document).ready(function() { 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")) ) { + var downloadURL = document.getElementById("downloadURL"); + if (downloadURL) { window.location=downloadURL.value+"&download&files="+encodeURIComponent(fileslist); } else { window.location=OC.filePath('files', 'ajax', 'download.php') + '?'+ $.param({ dir: dir, files: fileslist }); |