if ($(this)[0].className == 'sabam') propvalue = false;
$('tbody').find('.' + $(this)[0].className + ' input').prop('checked', propvalue);
});
+
+$('input[type=radio][name^=lang-]').on('change', function() {
+ var $instru = $(this).parents('tr').find('input[type=checkbox][name^=instru]');
+ if (($(this).val() == 'na' && ! $instru.is(':checked')) ||
+ ($(this).val() != 'na' && $instru.is(':checked'))) {
+ $instru.trigger('click');
+ }
+});
+
$('input[type=checkbox][name^=instru]').on('change', function() {
if ($(this).is(':checked')) {
$(this).parents('tr').find('input[name^=lang][value=na]').trigger('click');
+ } else {
+ $(this).parents('tr').find('input[name^=lang]').prop('checked', false);
}
});
</script>