Changes some API things.

This commit is contained in:
Lars Jung 2012-10-09 14:16:57 +02:00
parent 811994423d
commit a60d5556af
13 changed files with 36 additions and 33 deletions

View file

@ -35,7 +35,7 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
if (json && json.code === 0) {
setTimeout(function () { // wait here so the img above can be updated in time
window.location = server.apiHref + '?action=getarchive&id=' + json.id + '&as=h5ai-selection.' + settings.format;
window.location = '?action=getArchive&id=' + json.id + '&as=package.' + settings.format;
}, 200);
} else {
failed();
@ -48,7 +48,7 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
$img.attr('src', resource.image('loading.gif', true));
server.request({
action: 'archive',
action: 'createArchive',
execution: settings.execution,
format: settings.format,
hrefs: hrefsStr
@ -71,7 +71,7 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
init = function () {
if (!settings.enabled || !server.apiHref) {
if (!settings.enabled || !server.api) {
return;
}