Thank you for this!
I did it in my own way, creating one button with Select/Deselect and adding this code
var $selected = 0;
<?php /* reveal "select all" button and active it */ ?>
$("input.ngg-download-selectall").show().click(function() {
if ($selected == 0) {
$(this.form).find("input[name='pid[]']").prop({checked: true});
$selected = 1;
} else {
$(this).closest("form").find("input[name='pid[]']").prop({checked: false});
$selected = 0;
}
});
I’m sure there’s a more elegant way of doing this, but this was the most simple.
By the way, why is not all buttons linked to the language files? I can’t, for instance, find the select all text in the po-file.