Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Added option to allow retention of partially filled in masked fields#102

Closed
earino wants to merge 2 commits intodigitalBush:masterfrom
earino:master
Closed

Added option to allow retention of partially filled in masked fields#102
earino wants to merge 2 commits intodigitalBush:masterfrom
earino:master

Conversation

@earino
Copy link

@earino earino commented Nov 9, 2012

Updated Cakefile so it would not complain about out of support stuff, added a test in Focus.Spec.js and then added feature to masked method to allow the passing in of a new option, retainPartial. This should allow for better integration with the jquery validate library, as previously on partially entered data, the field would clear before jQuery Validate had a chance to even test the field's partial value for any sort of correctness.

Basically, we have fields that have remote validation rules, and they are masked. If the person left the field before the mask was fully filled in, it cleared it, never gave a chance for our remote validation rules to do anything interesting! This should hopefully fix it!

Eduardo Arino de la Rubia added 2 commits November 9, 2012 15:08
… added a test in Focus.Spec.js

and then added feature to masked method to allow the passing in of a new option, retainPartial. This
should allow for better integration with the jquery validate library, as previously on partially entered
data, the field would clear before jQuery Validate had a chance to even test the field's partial value for
any sort of correctness.
@steponas
Copy link

Applied this to the current master, by using the patch`s code where the conflict was. Works as outlined. I suggest adding this as a feature to the great plugin. It's configurable after all, and the benefits in some UX cases are enormous.

@digitalBush
Copy link
Owner

Cleaning up some old pull requests. Thank you for taking the time to submit this. This looks similar to the functionality that we merged in with #183.

@digitalBush digitalBush removed this from the 2.0 milestone Oct 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants