UNPKG

validaty

Version:

jQuery Validaty - A Validation Plugin

103 lines (69 loc) 2.28 kB
## v0.6.1 ### Fixes - Put back hash logic used to search previous message and destroy to avoid duplication; - `isCheckable` method now is back on `helper` methods; ## v0.6.0 ### News - Adds `data-validaty-ignore` to ignore `data-validaty` validations. - Adds `onInvalid` option callback that is executed when some field is invalid; - Adds `onMessage` execute when invalid messages is shown; ### Updates - Removes all validations example and keeps just one as example; - Removes `fade` and `fadeSpeed`, before `speed` options; ## v0.5.2 ### Fixes - Removes class `valid` and `invalid` before each validation to avoid `invalid valid` class. ## v0.5.1 ### Updates - fields with no `data-validaty` will return empty `validators` and `actions` instead of `undefined`; - fields with no `data-validaty` will be processed too. ## v0.5.0 ### News - Added callback options `errorTarget` where you receive the field and message and decide what to do with that; - Now the public `validate` method can receive the fields you want to validate. ## v0.4.1 ### Fixes - Replace `startsWith` with Regex, since IE does not support it. ## v0.4.0 ## News - Added callback option `onValid` that runs when all fields are valid. - Added function `valid` to check if all fields is valid. ## v0.3.0 ### Fixes - The fade effect was being applied even when not enabled; - The fade was not binding to the list style message. ## v0.2.0 ### News - Added option `balloon` to choose between balloon or list style message. ### Fixes - The `equal` validator was accepting blank value. ## v0.1.0 ### News - Balloon message to show the erros; - Bind via form. - Helper methods inside the plugin; - Highlight for valid and invalid fields; - Method to call the validation on form; - Method to destroy the Validaty's bind; - Method to get the validators; - Option to choose which field will be focused when validation fails; - Separated file to create the validators; - Support to declare the trigger of the validation inline with `on:` key; - Validation for: - contain; - digits; - e-mail; - equal; - isodate; - maxcheck; - maxlength; - maxselect; - mincheck; - minlength; - minselect; - number; - range; - rangelength; - required; - url; - username.