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,
|
type: type,
|
||||||
hrefs: selectedHrefsStr
|
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();
|
$form.appendTo('body').submit().remove();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue