Updates download.
This commit is contained in:
parent
fd16ed9eda
commit
b8503b6f03
2 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue