Permalink
Browse files

Updates download.

  • Loading branch information...
1 parent fd16ed9 commit b8503b6f03e0f60287d33497dbca123ef72836ae @lrsjng committed Sep 5, 2013
Showing with 14 additions and 9 deletions.
  1. +9 −4 src/_h5ai/client/js/inc/ext/download.js
  2. +5 −5 src/_h5ai/conf/options.json
@@ -51,11 +51,16 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
type: type,
hrefs: selectedHrefsStr
},
- $form = $('<form action="#" method="post" style="display:none;" />');
+ $form = $('<form action="#" method="post" style="display:none;"/>');
+
+ _.each(query, function (val, key) {
+
+ $('<input type="hidden"/>')
+ .attr('name', key)
+ .attr('value', val)
+ .appendTo($form);
+ });
- for (var key in query) {
- $form.append('<input type="hidden" name="' + key + '" value="' + query[key] + '" />');
- }
$form.appendTo('body').submit().remove();
},
@@ -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
},

0 comments on commit b8503b6

Please sign in to comment.