Fix opacity issue when clicking the text label beside the checkbox

This commit is contained in:
Flavio Copes
2015-08-17 20:41:09 +02:00
parent 57832c02b8
commit ec6e017fef

View File

@@ -484,6 +484,9 @@ $(function () {
input.prop('checked', on);
input.prop('value', on ? 1 : 0);
$(this).css('opacity', on ? 1 : 0.7);
input.siblings('label').css('opacity', on ? 1 : 0.7);
$(this).parents('.form-label').siblings('.form-data').css('opacity', on ? 1 : 0.7);
});
// Themes Switcher Warning