Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style attribute not rendered for <option> #169

Closed
badulesia opened this issue May 16, 2013 · 3 comments
Closed

style attribute not rendered for <option> #169

badulesia opened this issue May 16, 2013 · 3 comments
Assignees
Labels

Comments

@badulesia
Copy link

Hello.
This is the same problem that described in issue #119: the solution proposed no longer works with latest version.
I need a background color for each option line, this color has a technical meaning. So I use background styling

Consider this selectmenu
` Quaternaire Neogene `

$('#epoques').selectBoxIt();
creates the menu but without colored options
$('#epoques').selectBoxIt({ native:true });
creates the menu, with colored options, but of course without the nice rendering of the plugin.

At issue #119, you answered to use the copyAttributes option:
$('#epoques').selectBoxIt({ copyAttributes: ["style"] });
That works with previous version. With version 3.5.0, the selectmenu disappears and there is no display at all ! Javascript reports no error.

Am I wrong in the use ? Is there a tricky option missed ? or is it a bug ?
Thanks for looking at this issue :)

@gfranko
Copy link
Owner

gfranko commented May 17, 2013

I have fixed this issue in the dev branch and this will get included in the next release. If you would like the new code now, you can grab it here. Thanks for reporting this!

@gfranko gfranko closed this as completed May 17, 2013
@ghost ghost assigned gfranko May 17, 2013
@badulesia
Copy link
Author

Hello.
As always, thank you for answering and revising the code so quickly. It works now and the result looks exactly as expected. Keep working.

@badulesia
Copy link
Author

Le 17/05/2013 13:27, Greg Franko a écrit :

I have fixed this issue in the |dev| branch and this will get included
in the next release. If you would like the new code now, you can grab it
here
https://github.com/gfranko/jquery.selectBoxIt.js/blob/dev/src/javascripts/jquery.selectBoxIt.min.js.
Thanks for reporting this!

Hello.
As always, thank you for answering and revising the code so quickly. It
works now and the result looks exactly as expected.

Did you have time to look at the private message I send you a few days ago ?
The problem is more tricky and I can't tell if is a miss-use from me or
a bug in the boxit code.
The code works with version 3.2 that I used before. I'm currently
rewriting fully my project extensivly using ajax. Everything works fine
exceptfor #169 issue (now solved), and this multi-authors selectbox
problem. If I remove selectboxit from the code, everything works fine.

Badu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants