Updates download.

This commit is contained in:
Lars Jung 2013-09-06 00:20:55 +02:00
parent fd16ed9eda
commit b8503b6f03
2 changed files with 14 additions and 9 deletions

View file

@ -51,11 +51,16 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
type: type,
hrefs: selectedHrefsStr
},
$form = $('<form action="#" method="post" style="display:none;" />');
$form = $('<form action="#" method="post" style="display:none;"/>');
_.each(query, function (val, key) {
$('<input type="hidden"/>')
.attr('name', key)
.attr('value', val)
.appendTo($form);
});
for (var key in query) {
$form.append('<input type="hidden" name="' + key + '" value="' + query[key] + '" />');
}
$form.appendTo('body').submit().remove();
},