X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fjquery%2Fjquery.crmIconPicker.js;h=6e84df5c026ed09da2f65caab8e68feeaa0f89e9;hb=306cc663458a8a08fea2c364e21c819c4742cb51;hp=8fce94267fc2500c39f70309d862e10bb4ef6217;hpb=831d4f8f151ab9d0aa8960fc7cb8f22905db1149;p=civicrm-core.git diff --git a/js/jquery/jquery.crmIconPicker.js b/js/jquery/jquery.crmIconPicker.js index 8fce94267f..6e84df5c02 100644 --- a/js/jquery/jquery.crmIconPicker.js +++ b/js/jquery/jquery.crmIconPicker.js @@ -38,10 +38,12 @@ ]; function formatButton() { - var split = $input.val().split(' '); + var val = $input.val().replace('fa ', ''); + val = val.replace('crm-i ', ''); + var split = val.split(' '); $button.button('option', { label: split[0] || ts('None'), - icons: {primary: $input.val()} + icons: {primary: val ? val : 'fa-'} }); $style.toggle(!!split[0]).val(split[1] || ''); }