mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-04-08 14:42:50 +02:00
Explicitly setting the name should override this special case.
This commit is contained in:
parent
4b1ca1970a
commit
7ef1e285fd
@ -34,12 +34,12 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
|
||||
if (selectedItems.length === 1) {
|
||||
name = selectedItems[0].label;
|
||||
} else {
|
||||
name = settings.packageName || location.getItem().label;
|
||||
name = location.getItem().label;
|
||||
}
|
||||
|
||||
var query = {
|
||||
action: 'download',
|
||||
as: name + '.' + extension,
|
||||
as: (settings.packageName || name) + '.' + extension,
|
||||
type: type,
|
||||
hrefs: _.pluck(selectedItems, 'absHref').join('|:|')
|
||||
};
|
||||
|
@ -84,7 +84,7 @@ Options
|
||||
To select files the "select"-extension needs to be enabled.
|
||||
|
||||
- type: "php-tar", "shell-tar" or "shell-zip"
|
||||
- packageName: basename of the download package, null for current foldername
|
||||
- packageName: basename of the download package, null for current filename or foldername
|
||||
- alwaysVisible: always show download button (defaults to download the current folder)
|
||||
*/
|
||||
"download": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user