dqs-jquery-form-validator-rails 2.2.163 → 2.2.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +21 -0
  3. data/CHANGELOG.md +4 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +24 -0
  6. data/README.md +451 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/javascripts/brazil.dev.js +115 -0
  9. data/app/assets/javascripts/brazil.js +9 -0
  10. data/app/assets/javascripts/date.dev.js +81 -0
  11. data/app/assets/javascripts/date.js +9 -0
  12. data/app/assets/javascripts/file.dev.js +413 -0
  13. data/app/assets/javascripts/file.js +9 -0
  14. data/app/assets/javascripts/html5.dev.js +168 -0
  15. data/app/assets/javascripts/html5.js +9 -0
  16. data/app/assets/javascripts/jquery.form-validator.min.js +9 -0
  17. data/app/assets/javascripts/jsconf.dev.js +55 -0
  18. data/app/assets/javascripts/jsconf.js +9 -0
  19. data/app/assets/javascripts/lang/cz.dev.js +65 -0
  20. data/app/assets/javascripts/lang/cz.js +9 -0
  21. data/app/assets/javascripts/lang/de.dev.js +65 -0
  22. data/app/assets/javascripts/lang/de.js +9 -0
  23. data/app/assets/javascripts/lang/es.dev.js +62 -0
  24. data/app/assets/javascripts/lang/es.js +9 -0
  25. data/app/assets/javascripts/lang/fr.dev.js +62 -0
  26. data/app/assets/javascripts/lang/fr.js +9 -0
  27. data/app/assets/javascripts/lang/it.dev.js +62 -0
  28. data/app/assets/javascripts/lang/it.js +9 -0
  29. data/app/assets/javascripts/lang/pl.dev.js +65 -0
  30. data/app/assets/javascripts/lang/pl.js +9 -0
  31. data/app/assets/javascripts/lang/pt.dev.js +65 -0
  32. data/app/assets/javascripts/lang/pt.js +9 -0
  33. data/app/assets/javascripts/lang/ro.dev.js +65 -0
  34. data/app/assets/javascripts/lang/ro.js +9 -0
  35. data/app/assets/javascripts/lang/ru.dev.js +66 -0
  36. data/app/assets/javascripts/lang/ru.js +9 -0
  37. data/app/assets/javascripts/lang/sv.dev.js +63 -0
  38. data/app/assets/javascripts/lang/sv.js +9 -0
  39. data/app/assets/javascripts/location.dev.js +78 -0
  40. data/app/assets/javascripts/location.js +9 -0
  41. data/app/assets/javascripts/sanitize.dev.js +154 -0
  42. data/app/assets/javascripts/sanitize.js +9 -0
  43. data/app/assets/javascripts/security.dev.js +523 -0
  44. data/app/assets/javascripts/security.js +9 -0
  45. data/app/assets/javascripts/src/core-validators.js +343 -0
  46. data/app/assets/javascripts/src/dialogs.js +123 -0
  47. data/app/assets/javascripts/src/jquery-plugins.js +452 -0
  48. data/app/assets/javascripts/src/module-loader.js +150 -0
  49. data/app/assets/javascripts/src/setup.js +168 -0
  50. data/app/assets/javascripts/src/utils.js +840 -0
  51. data/app/assets/javascripts/sweden.dev.js +213 -0
  52. data/app/assets/javascripts/sweden.js +9 -0
  53. data/app/assets/javascripts/theme-default.css +108 -0
  54. data/app/assets/javascripts/theme-default.min.css +1 -0
  55. data/app/assets/javascripts/toggleDisabled.dev.js +67 -0
  56. data/app/assets/javascripts/toggleDisabled.js +9 -0
  57. data/app/assets/javascripts/uk.dev.js +85 -0
  58. data/app/assets/javascripts/uk.js +9 -0
  59. data/dqs-jquery-form-validator.gemspec +27 -0
  60. data/lib/dqs-jquery-form-validator-rails.rb +1 -0
  61. data/lib/dqs/jquery/form/validator/rails.rb +13 -0
  62. data/lib/dqs/jquery/form/validator/rails/engine.rb +12 -0
  63. data/lib/dqs/jquery/form/validator/rails/version.rb +11 -0
  64. metadata +64 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 497108e96699246006b7b58454b7f52361fa8fa6
4
- data.tar.gz: db30e1f649ae66b35a29245501c2673ba68a9790
3
+ metadata.gz: da93dbc27651501e6dba71efbe6f682517157f45
4
+ data.tar.gz: d7fd648eaae46003c67874de215fcddd4fa1875b
5
5
  SHA512:
6
- metadata.gz: 8a18958b7920b9731f3283c43ef9210e5896d0ca51ffe3ddfd2733e4d27022ee9de0370610ec1196f61abb4912b70730ac5636d11ec0c994a172b5183893e4f6
7
- data.tar.gz: 02ba00e646d8a9fa97ca5a627bc8dd6f389100205319ae7dbbecfea5f2ae5dc204be906c4f1d6be945d8a565f88695890e737d1f195f83361d8e3f6ff3de8429
6
+ metadata.gz: 61f8d62c3da9eea12eba7a6e2bb64e6abef79ea321ee2c374da96c32e0197d6d76835452891b5cdcc01bf585a1d250a20ffe2a522804f9c793970e0ca1a7271a
7
+ data.tar.gz: ff6c27b466a39fee0c871ab7f8604905cd11274b71120810584ccf0c5198453e15fafdafb5b729929d561a404a2a3d9719165976962b2925f0be0a5fdc5cfd9a
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_Store
19
+ .Trashes
20
+ .Spotlight-V100
21
+ .phpintel
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+
2
+ ## 0.0.1
3
+
4
+ * Initialize the jQuery form validator gem
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jquery-form-validator-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2014 Gustaf Lindqvist
2
+
3
+ jQuery Copyright (c)2012 jQuery Foundation and other contributors
4
+
5
+ MIT License
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining
8
+ a copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sublicense, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,451 @@
1
+ # DQS-Jquery::Form::Validator::Rails
2
+
3
+ DQS-Jquery-form-validator-rails gem is based on Victor Jonsson's jQuery plugin: https://github.com/victorjonsson/jQuery-Form-Validator
4
+
5
+ jQuery-Form-Validator:
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'dqs-jquery-form-validator-rails'
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Add `dqs-jquery-form-validator-rails` to your Gemfile and run `bundle install`:
18
+
19
+ gem "dqs-jquery-form-validator-rails"
20
+
21
+ ### Include jquery.form-validator-rails javascript assets
22
+
23
+ Add the following to your `app/assets/javascripts/application.js`:
24
+ ```
25
+ //= require jquery
26
+ //= require jquery.turbolinks
27
+ //= require jquery_ujs
28
+ //= require turbolinks
29
+ //= require jquery.form-validator
30
+ [...]
31
+ ```
32
+
33
+ ### Easy example
34
+
35
+ Example how to add Jquery Form Validator to FormHelper `text_field`:
36
+
37
+ <div class="controls">
38
+ <%= f.text_field(:example, class: "field", data: {
39
+ :validation => "required validate_max_length length50",
40
+ "validation-error-msg" => "This field is required and cannot be longer than 50 characters."
41
+ }) %>
42
+ </div>
43
+
44
+ Then add following to your `app/assets/javascripts/application.js`
45
+
46
+ <script>
47
+ $(document).ready(function() {
48
+ $.validate();
49
+ });
50
+ </script>
51
+
52
+ Other configuration options can be seen here: http://formvalidator.net/#configuration
53
+
54
+ ## Credits
55
+
56
+ #### Maintainer
57
+
58
+ [Douglas Quintiliano dos Santos](https://github.com/douglasqsantos)
59
+
60
+ #### Contributors
61
+ <a href="https://github.com/douglasqsantos" target="_blank">Douglas Quintiliano dos Santos</a><br />
62
+
63
+
64
+ # jQuery Form Validator (The default Documentation)
65
+
66
+ jQuery Form Validator is a **feature rich and multilingual** jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code. Even though this plugin has a wide range of validation functions it's **designed to require as little network traffic as possible**. This is achieved by grouping together validation functions in "modules", making it possible to load only those functions that's needed to validate a particular form.
67
+
68
+ **Form demos and full documentation available at http://formvalidator.net/**
69
+
70
+ [![Travis](https://travis-ci.org/victorjonsson/PHP-Markdown-Documentation-Generator.svg)](https://travis-ci.org/victorjonsson/jQuery-Form-Validator/builds/)
71
+
72
+ *Usage example*
73
+
74
+ ```html
75
+ <form action="" method="POST">
76
+ <p>
77
+ Name (4 characters minimum):
78
+ <input name="user" data-validation="length" data-validation-length="min4" />
79
+ </p>
80
+ <p>
81
+ Birthdate (yyyy-mm-dd):
82
+ <input name="birth" data-validation="birthdate" />
83
+ </p>
84
+ <p>
85
+ Website:
86
+ <input name="website" data-validation="url" />
87
+ </p>
88
+ <p>
89
+ <input type="submit" />
90
+ </p>
91
+ </form>
92
+ <script src="js/jquery.min.js"></script>
93
+ <script src="js/form-validator/jquery.form-validator.min.js"></script>
94
+ <script>
95
+ /* important to locate this script AFTER the closing form element, so form object is loaded in DOM before setup is called */
96
+ $.validate({
97
+ modules : 'date, security'
98
+ });
99
+ </script>
100
+ ```
101
+
102
+ ### Support for HTML5
103
+
104
+ As of version 2.2 (unreleased) you can use this plugin as a fallback solution for the validation attributes in the HTML5 spec. Add the module `html5` to the module declaration and you can use the following native features:
105
+
106
+ **Attributes**: require, pattern, maxlength, min, max, placeholder
107
+
108
+ **Input types**: url, date, time, email, number
109
+
110
+ **Elements**: Use the element `datalist` to create input suggestions
111
+
112
+
113
+ ### Default validators and features (no module needed)
114
+ * **url**
115
+ * **email**
116
+ * **domain** — *domain.com*
117
+ * **number** — *float/negative/positive/range/step*
118
+ * **date** — *yyyy-mm-dd (format can be customized, more information below)*
119
+ * **alphanumeric** — *with support for defining additional characters*
120
+ * **length** — *min/max/range*
121
+ * **required** — *no validation except that a value has to be given*
122
+ * **custom** — *Validate value against regexp*
123
+ * **checkboxgroup** — *ensure at least 1 checkbox in group has been selected*
124
+ * Show help information automatically when input is focused
125
+ * Validate given values immediately when input looses focus.
126
+ * Make validation optional by adding attribute data-validation-optional="true" to the element. This means
127
+ that the validation defined in data-validation only will take place in case a value is given.
128
+ * Make validation dependent on another input of type checkbox being checked by adding attribute
129
+ data-validation-if-checked="name of checkbox input"
130
+ * Create input suggestions with ease, no jquery-ui needed
131
+ * to apply multiple validators to an input element, separate the validator names using a space (ex: required email)
132
+
133
+ Read the documentation for the default features at [http://formvalidator.net/#default-validators](http://formvalidator.net/#default-validators)
134
+
135
+ ### Module: security
136
+ * **spamcheck**
137
+ * **confirmation**
138
+ * **creditcard**
139
+ * **CVV**
140
+ * **strength** — *Validate the strength of a password*
141
+ * **server** — *Validate value of input on server side*
142
+ * **letternumeric** — *Validate that the input value consists out of only letters and/or numbers*
143
+
144
+ Read the documentation for the security module at [http://formvalidator.net/#security-validators](http://formvalidator.net/#security-validators)
145
+
146
+ ### Module: date
147
+ * **time** — *hh:mm*
148
+ * **birthdate** — *yyyy-mm-dd, not allowing dates in the future or dates that's older than 122 years (format can be customized, more information below)*
149
+
150
+ Read the documentation for the date module at [http://formvalidator.net/#date-validators](http://formvalidator.net/#date-validators)
151
+
152
+ ### Module: location
153
+ * **country**
154
+ * **federatestate**
155
+ * **longlat**
156
+ * Suggest countries (english only)
157
+ * Suggest states in the US
158
+
159
+ Read the documentation for the location module at [http://formvalidator.net/#location-validators](http://formvalidator.net/#location-validators)
160
+
161
+ ### Module: file
162
+ * **mime**
163
+ * **extension**
164
+ * **size** (file size)
165
+ * **dimension** (size dimension and ratio)
166
+
167
+ Read the documentation for the file module at [http://formvalidator.net/#file-validators](http://formvalidator.net/#file-validators)
168
+
169
+ ### Module: sweden
170
+ * **swemob** — *validate that the value is a swedish mobile telephone number*
171
+ * **swesec** — *validate swedish social security number*
172
+ * **county** - *validate that the value is an existing county in Sweden*
173
+ * **municipality** - *validate that the value is an existing municipality in Sweden*
174
+ * Suggest county
175
+ * Suggest municipality
176
+
177
+ Read the documentation for the Swedish module at [http://formvalidator.net/#sweden-validators](http://formvalidator.net/#sweden-validators)
178
+
179
+ ### Module: uk
180
+ * **ukvatnumber**
181
+
182
+ Read the documentation for the UK module at [http://formvalidator.net/#uk-validators](http://formvalidator.net/#uk-validators)
183
+
184
+ ### Module: brazil
185
+ * **brphone** — Validate a brazilian telephone number
186
+ * **cep**
187
+ * **cpf**
188
+
189
+ ### Module: sanitation
190
+ * **trim**
191
+ * **trimLeft**
192
+ * **trimRight**
193
+ * **upper** — (convert all letters to upper case)
194
+ * **lower** — (convert all letters to lower case)
195
+ * **capitalize** — (convert the first letter in all words to upper case)
196
+ * **insertRight** — (declare a text that should be inserted at the end of the value, attribute data-sanitize-insert-right)
197
+ * **insertLeft** — (declare a text that should be inserted at the beginning of the value, attribute data-sanitize-insert-left)
198
+ * **escape** — (convert < > & ' " to html entities)
199
+ * **numberFormat** — (declare the attribute data-sanitize-number-format with any of the formats described on http://numeraljs.com/. Note that this rule requires that numeral.js is included in the page)
200
+
201
+ Read the documentation for the sanitation module at [http://formvalidator.net/#data-sanitation](http://formvalidator.net/#data-sanitation)
202
+
203
+
204
+ ## Writing a custom validator
205
+ You can use the function `$.formUtils.addValidator()` to add your own validation function. Here's an example of a validator
206
+ that checks if the input contains an even number.
207
+
208
+ ```html
209
+ <form action="" method="POST">
210
+ <p>
211
+ <input type="text" data-validation="even" />
212
+ </p>
213
+ ...
214
+ </form>
215
+ <script src="js/jquery.min.js"></script>
216
+ <script src="js/form-validator/jquery.form-validator.min.js"></script>
217
+ <script>
218
+
219
+ // Add validator
220
+ $.formUtils.addValidator({
221
+ name : 'even',
222
+ validatorFunction : function(value, $el, config, language, $form) {
223
+ return parseInt(value, 10) % 2 === 0;
224
+ },
225
+ errorMessage : 'You have to answer an even number',
226
+ errorMessageKey: 'badEvenNumber'
227
+ });
228
+
229
+ // Initiate form validation
230
+ $.validate();
231
+
232
+ </script>
233
+ ```
234
+
235
+ ### Required properties passed into $.formUtils.addValidator
236
+
237
+ *name* - The name of the validator, which is used in the validation attribute of the input element.
238
+
239
+ *validatorFunction* - Callback function that validates the input. Should return a boolean telling if the value is considered valid or not.
240
+
241
+ *errorMessageKey* - Name of language property that is used in case the value of the input is invalid.
242
+
243
+ *errorMessage* - An alternative error message that is used if errorMessageKey is left with an empty value or isn't defined
244
+ in the language object. Note that you also can use [inline error messages](http://formvalidator.net/#localization) in your form.
245
+
246
+
247
+ The validation function takes these five arguments:
248
+ - value — the value of the input thats being validated
249
+ - $el — jQuery object referring to the input element being validated
250
+ - config — Object containing the configuration of this form validation
251
+ - language — Object with error dialogs
252
+ - $form — jQuery object referring to the form element being validated
253
+
254
+ ## Creating a custom module
255
+
256
+ A "module" is basically a javascript file containing one or more calls to [$.formUtils.addValidator()](#writing-a-custom-validator). The module file
257
+ should either have the file extension *.js* (as an ordinary javascript file) or *.dev.js*.
258
+
259
+ Using the file extension **.dev.js** will tell *$.formUtils.loadModules* to always append a timestamp to the end of the
260
+ URL, so that the browser never caches the file. You should of course never use *.dev.js* on a production website.
261
+
262
+ ### Loading your module ###
263
+
264
+ ```html
265
+ <html>
266
+ <head>
267
+ <script src="js/form-validator/jquery.form-validator.min.js"></script>
268
+ <script>
269
+ $.formUtils.loadModules('mymodule.dev', 'js/validation-modules/');
270
+ </script>
271
+ </head>
272
+ </html>
273
+ ...
274
+ ```
275
+
276
+ The first argument of $.formUtils.loadModules is a comma separated string with names of module files, without
277
+ file extension (add .dev if the file name is for example mymodule.dev.js, this will insure that the browser never
278
+ caches the javascript).
279
+
280
+ The second argument is the path where the module files is located. This argument is optional, if not given
281
+ the module files has to be located in the same directory as the core modules shipped together with this jquery plugin
282
+ (js/form-validator/)
283
+
284
+ ## Show help information
285
+ It is possible to display help information for each input. The information will fade in when input is focused and fade out when input looses focus.
286
+
287
+ ```html
288
+ <form action="" id="my_form">
289
+ <p>
290
+ <strong>Why not:</strong>
291
+ <textarea name="why" data-validation-help="Please give us some more information" data-validation="required"></textarea>
292
+ </p>
293
+ ...
294
+ ```
295
+
296
+ ## Fully customizable
297
+
298
+ Read about how to customize this plugin over at [http://formvalidator.net/#configuration](http://formvalidator.net/#configuration)
299
+
300
+ ### Validate On Event ###
301
+ You can cause an element to be validated upon the firing of an event, by attaching an attribute to the form input element named `data-validation-event="click"`. When the configuration settings have `validateOnEvent : true`, the click event will trigger the onBlur validaton for that element. Possible use case: Checkboxes. Instead of waiting for the checkbox to lose focus (blur) and waiting for a validation to occurr, you can specify that elements validation should occur as soon as that checkbox element is clicked.
302
+
303
+ ## Localization
304
+
305
+ This plugin comes with translations for English, German, French Spanish and Swedish. You can also choose to override the error
306
+ dialogs yourself. Here you can read more about [localization](http://formvalidator.net/#localization)
307
+
308
+ ## Changelog
309
+
310
+ #### 2.3.0 (unreleased)
311
+ - New translations (Polish, Romanian, Czech, Russian, Italian)
312
+ - Several improvements made to already existing translations
313
+ - "Validation help" no longer puts constraints on input names
314
+ - Improved confirmation validation
315
+ - Now possible to set `errorMessagePosition` to a callback function
316
+ - Now possible to add `data-validation-ignore` to filter out certain characters before validation
317
+ - New sanitation method `strip` that removes defined characters
318
+ - Now possible to declare attributes not prefixed with data-validation in jsconf module
319
+ - All inputs gets sanitized on page load when using sanitation module
320
+ - Allow dates to omit leading zero using `data-validation-require-leading-zero="false"`
321
+ - Module toggleDisabled now acts on value change, not only mouse click
322
+
323
+ #### 2.2.8
324
+ - The plugin is now again possible to install via bower.
325
+ - Portoguese language pack and validators
326
+ - New module used for data-sanitiation
327
+ - E-mail addresses now validated in accordance to rfc 6531
328
+ - Now possible to use $.fn.validate to programmatically validate inputs
329
+ - Hidden inputs won't get validated by default (can be overriden using option validateHiddenInputs)
330
+
331
+
332
+ #### 2.2.43
333
+ - Fixed min/max parse error in HTML5 module
334
+ - Now also supports Twitter bootstraps horizontal forms
335
+ - This plugin now also distributes a default CSS theme including success/fail icons (used on formvalidator.net)
336
+ - Email validation now won't fail if email begins with a number
337
+ - This plugin now comes with error dialogs translated to English, French, German, Spanish and English.
338
+ - New validator `letternumeric`. Validates that input consists out of any type of letter (not only alphanumeric) and/or numbers
339
+ - You can now validate image dimension and ratio
340
+ - ... and a bunch of other smaller bug fixes and improvements.
341
+
342
+ #### 2.2.0
343
+ * Now possible to define an error message for each validation rule on a certain input (issue #113)
344
+ * This plugin now serves as a html5 fallback. You can now use the native attributes to declare which type
345
+ of validation that should be applied.
346
+ * Use a template for error messages when having errorMessagePosition set to top
347
+ * Added validation of credit card number and CVV to the security module
348
+ * Event onElementValidate added
349
+ * Use the attribute data-validation-confirm to declare which input that should be confirmed when using validation=confirmation (issue #112)
350
+ * Validation "required" now supports inputs of type radio
351
+ * $.validateForm is now deprecated, use $.isValid instead
352
+ * Possible to check if form is valid programmatically without showing error messages
353
+ * Select elements can now be validated server-side
354
+ * Cleaned up dialog messages
355
+ * Various IE8 fixes
356
+ * Possible to send along parameters to the server when using server side validation
357
+ * Now possible to set your own parameter name when using server side validation
358
+ * Improved/simplified URL validation
359
+ * ... and a whole lot more small improvements
360
+
361
+ #### 2.1.47
362
+ * Incorrect error-styling when using datepicker or suggestions is now fixed
363
+ * Incorrect error-styling of select elements is now fixed
364
+ * Deprecated function $.validationSetup is now removed, use $.validate() instead
365
+ * You can now return an array with errors using the event `onValidate`
366
+ * You can now declare an element where all error messages should be placed (config.errorMessagePosition)
367
+
368
+ #### 2.1.36
369
+ * Now possible to use the native reset() function to clear error messages and error styling of the input elements
370
+
371
+ #### 2.1.34
372
+ * General improvements and bug fixes
373
+ * Added events "beforeValidation" and "validation" (see http://formvalidator.net/#configuration_callbacks for more info)
374
+
375
+ #### 2.1.27
376
+ * E-mail validation support .eu top domain
377
+ * Improvements in server validation
378
+ * Now possible to re-initiate the validation. This makes it possible to dynamically change the form and then call $.validate() again to refresh the validation (issue #59)
379
+ * Number validation now supports range
380
+
381
+ #### 2.1.15
382
+ * E-mail addresses can now contain + symbol
383
+ * Correction of the US states in validation "federatestate"
384
+ * Fixed bug in server validation
385
+
386
+ #### 2.1.09
387
+ * File validation now support multiple files
388
+ * Length validation can now be used to validate the number of uploaded files using a file input that supports multiple files
389
+ * Validation classes is no longer applied on inputs that for some reason shouldn't become validated
390
+
391
+ #### 2.1.08
392
+ * Now possible to configure the decimal separator when validating float values. Use either the
393
+ attribute *data-validation-decimal-separator* or the property *decimalSeparator* when
394
+ calling $.validate()
395
+ * $.validationSetup is renamed to $.validate. You will still be able to initiate the validation by calling
396
+ the $.validationSetup but it's considered deprecated.
397
+
398
+ #### 2.1.06
399
+ * Modules can now be loaded from remote websites
400
+
401
+ #### 2.1.05
402
+ * Fixed language bug (issue #43 on github)
403
+ * Validation on server side is now triggered by the blur event
404
+ * Now using class names that's compliant with twitter bootstrap 3.x
405
+
406
+ #### 2.1
407
+ * Code refactoring and some functions renamed
408
+ * Validator "checkbox_group" added
409
+
410
+ #### 2.0.7
411
+ * Now possible to validate file size, extension and mime type (using the file module)
412
+
413
+ #### 2.0
414
+ * [min|max]_length is removed (now merged with length validation).
415
+ * The number, int and float validation is merged together, all three variants is now validated by the number validation.
416
+ * Phone validation is moved to "sweden" module and renamed to swephone.
417
+ * The attribute to be used when defining the regular expression for custom validations is now moved to its own attribute (data-validation-regexp)
418
+ * Length validation now looks at attribute data-validation-length (eg. min5, max200, 3-12).
419
+ * The validation rule no longer needs to be prefixed with "validate_" (it's still possible to use the prefix but it's considered deprecated).
420
+ * Some validation functions is moved to modules (see the function reference over at http://formvalidator.net).
421
+ * Added function $.validationSetup() to reduce the amount of code that has to be written when initiating the form validation.
422
+
423
+
424
+ ## Credits
425
+
426
+ #### Maintainer
427
+
428
+ [Victor Jonsson](https://github.com/victorjonsson)
429
+
430
+ #### Contributors
431
+ <a href="http://stevewasiura.waztech.com" target="_blank">Steve Wasiura</a><br />
432
+ <a href="http://lagden.github.com" target="_blank">Thiago Lagden</a><br />
433
+ <a href="https://github.com/robamaton" target="_blank">Joel Sutherland</a><br />
434
+ <a href="https://github.com/mattclements" target="_blank">Matt Clements</a><br />
435
+ <a href="http://www.joshtoft.com/" target="_blank">Josh Toft</a><br/>
436
+ <a href="https://github.com/dfcplc" target="_blank">@dfcplc</a><br />
437
+ <a href="https://github.com/coffein" target="_blank">Andree Wendel</a><br />
438
+ <a href="http://www.huotmedia.com" target="_blank">Nicholas Huot</a><br />
439
+ <a href="https://github.com/Repkit" target="_blank">@repkit</a><br />
440
+ <a href="https://github.com/aL3xa" target="_blank">Alexandar Blagotic</a><br />
441
+ <a href="http://thekindof.me/" target="_blank">Yasith Fernando</a><br />
442
+ <a href="https://github.com/S0L4R1S" target="_blank">@S0L4R1S</a><br />
443
+ <a href="http://lisangan.com/">Erick Lisangan</a><br />
444
+ <a href="https://github.com/kirbs-">@kirbs</a>
445
+ <a href="https://github.com/hslee87">hslee87</a>
446
+
447
+ #### Additional credits
448
+
449
+ <a href="http://projects.scottsplayground.com/iri/" target="_blank">Scott Gonzales</a> (URL regexp)<br />
450
+ <a href="http://www.mypocket-technologies.com" target="_blank">Darren Mason</a> (Password strength meter)<br />
451
+ <a href="http://stevewasiura.waztech.com" target="_blank">Steve Wasiura</a> (Checkbox group)