Updates download.

This commit is contained in:
Lars Jung 2013-09-06 00:20:55 +02:00
parent fd16ed9eda
commit b8503b6f03
2 changed files with 14 additions and 9 deletions

View file

@ -53,9 +53,14 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
}, },
$form = $('<form action="#" method="post" style="display:none;"/>'); $form = $('<form action="#" method="post" style="display:none;"/>');
for (var key in query) { _.each(query, function (val, key) {
$form.append('<input type="hidden" name="' + key + '" value="' + query[key] + '" />');
} $('<input type="hidden"/>')
.attr('name', key)
.attr('value', val)
.appendTo($form);
});
$form.appendTo('body').submit().remove(); $form.appendTo('body').submit().remove();
}, },

View file

@ -92,7 +92,7 @@ Options
Allow file deletion. Allow file deletion.
*/ */
"delete": { "delete": {
"enabled": false "enabled": true
}, },
/* [EXPERIMENTAL] /* [EXPERIMENTAL]
@ -103,7 +103,7 @@ Options
- maxfilesize: number, file size is in MB - maxfilesize: number, file size is in MB
*/ */
"dropbox": { "dropbox": {
"enabled": false, "enabled": true,
"maxfiles": 10, "maxfiles": 10,
"maxfilesize": 1000 "maxfilesize": 1000
}, },
@ -115,7 +115,7 @@ Options
- packageName: basename of the download package, null for current foldername - packageName: basename of the download package, null for current foldername
*/ */
"download": { "download": {
"enabled": false, "enabled": true,
"type": "php-tar", "type": "php-tar",
"packageName": null "packageName": null
}, },
@ -137,7 +137,7 @@ Options
Calc the size of folders. Calc the size of folders.
*/ */
"foldersize": { "foldersize": {
"enabled": false "enabled": true
}, },
/* /*
@ -188,7 +188,7 @@ Options
2: mode, servername and -version 2: mode, servername and -version
*/ */
"mode": { "mode": {
"enabled": false, "enabled": true,
"display": 2 "display": 2
}, },