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

Fix for case when not using div class control-group #9

Merged
merged 1 commit into from Apr 26, 2013

Conversation

hgcummings
Copy link
Contributor

The current code assumes that the input (and its label) are wrapped in a div with class control-group. This is a pretty standard structure for forms in twitter bootstrap, but it's not mandatory. See the 'Default Styles' example at http://twitter.github.io/bootstrap/base-css.html#forms, or indeed the example HTML in https://github.com/markusslima/bootstrap-filestyle/blob/master/README.md

This patch uses the control-group div if it's present, and otherwise creates a new parent div in which to wrap the file upload input.

markusslima added a commit that referenced this pull request Apr 26, 2013
Fix for case when not using div class control-group
@markusslima markusslima merged commit 48a0366 into markusslima:master Apr 26, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants