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 support <option> tag values with spaces #2

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

Comments

@cdeyoung
Copy link

As is, Bootstrap-transfer doesn't support tag values with spaces. For example, if you have the value attribute "test me" and run that through bootstrap-transfer, what you'll get is a tag that looks like this:

Test Me

And only "test" will be sent to the server.

In order to support values that have spaces, you'll need to change line 112 in bootstrap-transfer.js from:

source[i].append('<option ' + selected + 'value=' + e[0].value + '>' + e[0].content + '</option>');

to this:

source[i].append('<option ' + selected + 'value="' + e[0].value + '">' + e[0].content + '</option>');

Notice the double quotes in the value= section?

Again, great plugin with just a couple of minor issues.

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