Make configurable which inputs validateForm will validate #454

Merged
merged 1 commit into from Jan 3, 2013

Conversation

Projects
None yet
3 participants
Contributor

kirel commented Dec 30, 2012

I needed validation of disabled form fields which is impossible since #177 was closed. This lets me enable it via setting

ClientSideValidations.selectors.inputs = ':input:not(button):not([type="submit"])[name]:visible'
ClientSideValidations.selectors.validate_inputs = ':input:visible[data-validate]'

markets commented Jan 3, 2013

👍 nice stuff @kirel, I need something very similar. I use select2 and selects becomes invisible ('display: none'), so these inputs are ignored by now.

Contributor

bcardarella commented Jan 3, 2013

Strange I never got an email about this PR. I'll check it out over the weekend, pretty slammed right now :p

Contributor

bcardarella commented Jan 3, 2013

actually, not much to review. Pulling in.

bcardarella added a commit that referenced this pull request Jan 3, 2013

Merge pull request #454 from kirel/v3.2.1-configurable-validatable-in…
…puts

Make configurable which inputs validateForm will validate

@bcardarella bcardarella merged commit 1f07ef0 into DavyJonesLocker:3-2-stable Jan 3, 2013

1 check passed

default The Travis build passed
Details

markets commented Jan 3, 2013

thanks guys!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment