Am 02.07.2015 um 16:55 schrieb Johannes Löthberg: > Fixes FS#45379. > > Signed-off-by: Johannes Löthberg <[email protected]> > --- > Changes since v1: > * Use jQuery > * Allow for better localization > * Without JS there won't be any counter listed
+1
> + var elements = $('.package-checkbox');
> + for (var i = 0, len = elements.length; i < len; i++) {
> + elements[i].onchange = update_checked_count;
> + }
I think a loop is not needed here, this should do the same:
$('.package-checkbox').change(update_checked_count);
best regards,
carstene1ns
signature.asc
Description: OpenPGP digital signature
