feature #561, make font icon radio work with any name

Like input name like "w[position]"
This commit is contained in:
plegall
2016-12-10 20:05:12 +01:00
parent 9b6ec85f09
commit e64f282a58

View File

@@ -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');