mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Semantics.
This commit is contained in:
parent
694ababf15
commit
ec5220a5f9
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
|
||||||
var type = settings.type,
|
var type = settings.type,
|
||||||
extension = (type === 'shell-zip') ? 'zip' : 'tar',
|
extension = (type === 'shell-zip') ? 'zip' : 'tar',
|
||||||
query = {
|
query = {
|
||||||
action: 'passArchive',
|
action: 'download',
|
||||||
as: (settings.packageName || location.getItem().label) + '.' + extension,
|
as: (settings.packageName || location.getItem().label) + '.' + extension,
|
||||||
type: type,
|
type: type,
|
||||||
hrefs: selectedHrefsStr
|
hrefs: selectedHrefsStr
|
||||||
|
|
|
@ -100,7 +100,7 @@ class Api {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
else if ($action === "passArchive") {
|
else if ($action === "download") {
|
||||||
|
|
||||||
json_fail(1, "downloads disabled", !$options["download"]["enabled"]);
|
json_fail(1, "downloads disabled", !$options["download"]["enabled"]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue