great idea; surprised the font icon module didnt do this from the start. i have it showing icons for the field but nothing gets saved when i submit form.

Comments

liquidcms created an issue. See original summary.

K3vin_nl’s picture

There are some drawbacks to this solution. See issue #2370899.
Basicly what my module does is hide the original select element and change it (invisibly) when an icon is clicked.
You can show the select again by making it visible in webinspector, or by modifying my CSS. If you make it visible, you should be able to see it change if you click an icon.
It sounds to me like a javascript error is causing this not to work. Do you see an error in the javascript console?

mmelkhatib’s picture

I can verify that I am getting the same error too. The console error I am getting is

Uncaught Error: Syntax error, unrecognized expression: [data-select-name='quick_fact_icons_iconmoon|icons-qf-megaphone'

Could this have something to do with the Jquery Update module? We are currently using JQuery 10 and the Adminimal theme. If you need me to volunteer more information let me know.

Otherwise, great module!

K3vin_nl’s picture

Might very well be that a newer version of jQuery causes some issues. I'll test and get back to you!

  • b8ba46f committed on 7.x-1.x
    Issue #2559431:fixed jquery 1.10 compatiblity
    
K3vin_nl’s picture

Status: Active » Needs review

I have just released a new version and tested it in jQuery 1.10 as well. Should work now.

K3vin_nl’s picture

Version: » 7.x-1.0-alpha1
Status: Needs review » Fixed
K3vin_nl’s picture

Status: Fixed » Closed (fixed)