feature #565, check the checkbox state

...before we apply the appropriate checked/unchecked icon. This problem was
obvious when using the shoft-click selection feature on Batch Manager.
This commit is contained in:
plegall
2016-12-12 15:42:19 +01:00
parent 31bc360f7c
commit 4df36903b9

View File

@@ -6,7 +6,13 @@ jQuery.fn.fontCheckbox = function() {
}
});
this.find('input[type=checkbox]').on('change', function() {
jQuery(this).prev().toggleClass('icon-check icon-check-empty');
jQuery(this).prev().removeClass();
if (!jQuery(this).is(':checked')) {
jQuery(this).prev().addClass('icon-check-empty');
}
else {
jQuery(this).prev().addClass('icon-check');
}
});
/* radio */