Skip to content

Bootstrap-transfer doesn't handle ampersands correctly #3

Description

@cdeyoung

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions