Make sure input is a checkbox #38

Merged
merged 1 commit into from Dec 12, 2012

Projects

None yet

2 participants

@sziep
sziep commented Nov 15, 2012

When you have other types of inputs inside the same div, they will be wrapped as well, which has an undesired effect on the look. This happens for example in rails views where you use the "check_box" method which creates an input as well as a hidden field for the off value. By making sure that only inpu:checkbox is returned, all non checkbox inputs are left untouched.

@nostalgiaz nostalgiaz merged commit 0e2a51a into nostalgiaz:master Dec 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment