mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-07 17:32:30 +01:00
feature #561, make font icon radio work with any name
Like input name like "w[position]"
This commit is contained in:
1 parent
9b6ec85f09
commit
e64f282a58
1 file changed
+1
-1
@@ -16,7 +16,7 @@ jQuery.fn.fontCheckbox = function() {
|
||||
}
|
||||
});
|
||||
this.find('input[type=radio]').on('change', function() {
|
||||
jQuery('.font-checkbox input[type=radio][name='+ jQuery(this).attr('name') +']').each(function() {
|
||||
jQuery('.font-checkbox input[type=radio][name="'+ jQuery(this).attr('name') +'"]').each(function() {
|
||||
jQuery(this).prev().removeClass();
|
||||
if (!jQuery(this).is(':checked')) {
|
||||
jQuery(this).prev().addClass('icon-circle-empty');
|
||||
|
||||
Reference in new issue
Block a user