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

Bootstrap-transfer doesn't handle ampersands correctly #3

Open
cdeyoung opened this issue Aug 30, 2012 · 0 comments
Open

Bootstrap-transfer doesn't handle ampersands correctly #3

cdeyoung opened this issue Aug 30, 2012 · 0 comments

Comments

@cdeyoung
Copy link

Bootstrap-transfer isn't handling values with ampersands correctly. In order to accommodate values with ampersands, I changes the following lines:

if (!force_hilite_off && settings.hilite_selection && !old[i].hasOwnProperty(e[0].value))

and

if (e[0].value == val)

to:

if (!force_hilite_off && settings.hilite_selection && !old[i].hasOwnProperty(e[0].value.replace('&', '&')))

and

if (e[0].value.replace('&', '&') == val.replace('&', '&'))

I hope this helps.

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

No branches or pull requests

1 participant