Fix submission of multi-folder message selection through hidden form fields

pull/171/merge
Thomas Bruederli 10 years ago
parent 9429087f67
commit ca33f32b60

@ -65,7 +65,13 @@ function rcmail_zipdownload(mode)
post._token = rcmail.env.request_token;
$.each(post, function(k, v) {
inputs.push($('<input>').attr({type: 'hidden', name: k, value: v}));
if (typeof v == 'object' && v.length > 1) {
for (var j=0; j < v.length; j++)
inputs.push($('<input>').attr({type: 'hidden', name: k+'[]', value: v[j]}));
}
else {
inputs.push($('<input>').attr({type: 'hidden', name: k, value: v}));
}
});
if (!form.length)

Loading…
Cancel
Save