sapo/Ink.js — pull request #14 by mAiNiNfEcTiOn (2013-08-22 20:36:46+00:00)
Title: Multiple changes in the Validations area :)

Well, added two new functions to the Ink.Util.Validator_1 module: isIP and isCreditCard. Obviously this doesn't replace the validation in backend... Nothing really does.

Added a FormValidator_2 new module, with support for data-attributes to define rules and other things. It's a flexible component, can easily be extended either by using the Ink.UI.FormValidator_2.setRule() method or by adding more functions to the validationFunctions object available in the component.

Also added a proof of concept of the new FormValidator_2, in the samples :)