From e64f282a58d6569641fb7fa8abc87c128c501b44 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 10 Dec 2016 20:05:12 +0100 Subject: [PATCH] feature #561, make font icon radio work with any name Like input name like "w[position]" --- admin/themes/default/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/js/common.js b/admin/themes/default/js/common.js index 47e200143..48c553933 100644 --- a/admin/themes/default/js/common.js +++ b/admin/themes/default/js/common.js @@ -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');