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 committed 2016-12-12 15:53:17 +01:00
1 parent 31bc360f7c
commit 4df36903b9
1 file changed
+7 -1
+7 -1
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 */