Skip to content

Commit 754ec20

Browse files
committed
some small adjustments and tests
1 parent 8f6b0c4 commit 754ec20

File tree

10 files changed

+17
-14
lines changed

10 files changed

+17
-14
lines changed

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.beta.25
13+
* @version 2.2.beta.26
1414
*/
1515
(function($) {
1616

form-validator/file.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.beta.25
13+
* @version 2.2.beta.26
1414
*/
1515
(function($, window) {
1616

form-validator/html5.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @website http://formvalidator.net/
1919
* @license Dual licensed under the MIT or GPL Version 2 licenses
20-
* @version 2.2.beta.25
20+
* @version 2.2.beta.26
2121
*/
2222
(function($, window) {
2323

form-validator/jquery.form-validator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @website http://formvalidator.net/
77
* @license Dual licensed under the MIT or GPL Version 2 licenses
8-
* @version 2.2.beta.25
8+
* @version 2.2.beta.26
99
*/
1010
(function($) {
1111

@@ -132,7 +132,7 @@
132132
this.find('input[data-validation][data-validation-event],textarea[data-validation][data-validation-event],select[data-validation][data-validation-event]')
133133
.each(function(){
134134
var $el = $(this),
135-
etype = $el.attr("data-validation-event");
135+
etype = $el.valAttr("event");
136136
if (etype){
137137
$el.bind(etype + ".validation", function(){
138138
$(this).validateInputOnBlur(language, settings, true, etype);
@@ -1628,7 +1628,7 @@
16281628
validatorFunction : function(val, $el, conf, language) {
16291629
var patternStart = '^([a-zA-Z0-9',
16301630
patternEnd = ']+)$',
1631-
additionalChars = $el.attr('data-validation-allowing'),
1631+
additionalChars = $el.valAttr('allowing'),
16321632
pattern = '';
16331633

16341634
if( additionalChars ) {

form-validator/jquery.form-validator.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/location.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.beta.25
13+
* @version 2.2.beta.26
1414
*/
1515
(function($) {
1616

form-validator/qunit.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@
211211
{val:'asdXAvs1', isValid:true},
212212
{val:'a b', isValid:false},
213213
{val:'a-_ bäöåA', isValid:false},
214+
{val:'abbb', isValid:true},
215+
{val:'a,bbb', isValid:false},
216+
{val:input('a,bbb', {'allowing':',', '':'alphanumeric'}), isValid:true},
214217
{val:input('a b', {'allowing':' ', '':'alphanumeric'}), isValid:true},
215218
{val:input('a-_ bäöåÖA', {'allowing':' -_öäåÄÖÅ', '':'alphanumeric'}), isValid:true}
216219
];
@@ -288,7 +291,7 @@
288291

289292

290293
/*
291-
* ALPHANUMERIC VALIDATION
294+
* DISABLED VALIDATION
292295
*/
293296
test("Do not validate disabled", function() {
294297
clearForm();

form-validator/security.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* - cvv
1414
*
1515
* @website http://formvalidator.net/#security-validators
16-
* @version 2.2.beta.25
16+
* @version 2.2.beta.26
1717
*/
1818
(function($, window) {
1919

form-validator/sweden.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @website http://formvalidator.net/#swedish-validators
1515
* @license Dual licensed under the MIT or GPL Version 2 licenses
16-
* @version 2.2.beta.25
16+
* @version 2.2.beta.26
1717
*/
1818
(function($, window) {
1919

form-validator/uk.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @website http://formvalidator.net/#uk-validators
1111
* @license Dual licensed under the MIT or GPL Version 2 licenses
12-
* @version 2.2.beta.25
12+
* @version 2.2.beta.26
1313
*/
1414
$.formUtils.addValidator({
1515
name : 'ukvatnumber',

0 commit comments

Comments
 (0)