diff --git a/src/_h5ai/client/js/inc/ext/download.js b/src/_h5ai/client/js/inc/ext/download.js index 4b1278d7..a0f0b2cb 100644 --- a/src/_h5ai/client/js/inc/ext/download.js +++ b/src/_h5ai/client/js/inc/ext/download.js @@ -51,11 +51,16 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co type: type, hrefs: selectedHrefsStr }, - $form = $('
'); + $form = $(''); + + _.each(query, function (val, key) { + + $('') + .attr('name', key) + .attr('value', val) + .appendTo($form); + }); - for (var key in query) { - $form.append(''); - } $form.appendTo('body').submit().remove(); }, diff --git a/src/_h5ai/conf/options.json b/src/_h5ai/conf/options.json index 12f3f40c..61e74abd 100644 --- a/src/_h5ai/conf/options.json +++ b/src/_h5ai/conf/options.json @@ -92,7 +92,7 @@ Options Allow file deletion. */ "delete": { - "enabled": false + "enabled": true }, /* [EXPERIMENTAL] @@ -103,7 +103,7 @@ Options - maxfilesize: number, file size is in MB */ "dropbox": { - "enabled": false, + "enabled": true, "maxfiles": 10, "maxfilesize": 1000 }, @@ -115,7 +115,7 @@ Options - packageName: basename of the download package, null for current foldername */ "download": { - "enabled": false, + "enabled": true, "type": "php-tar", "packageName": null }, @@ -137,7 +137,7 @@ Options Calc the size of folders. */ "foldersize": { - "enabled": false + "enabled": true }, /* @@ -188,7 +188,7 @@ Options 2: mode, servername and -version */ "mode": { - "enabled": false, + "enabled": true, "display": 2 },