mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-06 13:26:38 +02:00
Semantics.
This commit is contained in:
@@ -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"]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user