Correct root dir in php_tar.

This commit is contained in:
Lars Jung 2013-07-18 21:07:56 +02:00
parent 4fac5baedd
commit adce6f19c4
2 changed files with 5 additions and 5 deletions

View file

@ -73,10 +73,10 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
var type = settings.type,
extension = type === 'shell-zip' ? 'zip' : 'tar',
query = '?action=passArchive'
+ '&as=' + encodeURIComponent((settings.packageName || location.getItem().label) + '.' + extension)
+ '&type=' + type
+ '&hrefs=' + encodeURIComponent(selectedHrefsStr),
query = '?action=passArchive' +
'&as=' + encodeURIComponent((settings.packageName || location.getItem().label) + '.' + extension) +
'&type=' + type +
'&hrefs=' + encodeURIComponent(selectedHrefsStr),
$iframe = $('<iframe src="' + query + '" style="display: none;" />');
$iframe.appendTo('body');