mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user