2 Jul
2015
2 Jul
'15
5:30 p.m.
Am 02.07.2015 um 16:55 schrieb Johannes Löthberg:
Fixes FS#45379.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- 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