Skip to content

Commit 40e6ba0

Browse files
committed
Fix in grunt build
1 parent c001a81 commit 40e6ba0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+68
-4688
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = function (grunt) {
6565
};
6666

6767
// Add main script to uglify
68-
// filesToBuild.uglify[MAIN_PLUGIN_FILE] = MAIN_PLUGIN_FILE;
68+
filesToBuild.uglify[MAIN_PLUGIN_FILE] = MAIN_PLUGIN_FILE;
6969

7070
grunt.initConfig({
7171

form-validator/brazil.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @website http://formvalidator.net/#brazil-validators
1313
* @license MIT
14-
* @version 2.2.135
14+
* @version 2.2.136
1515
*/
1616

1717
$.formUtils.addValidator({

form-validator/brazil.js

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

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 MIT
13-
* @version 2.2.135
13+
* @version 2.2.136
1414
*/
1515
(function($) {
1616

form-validator/date.js

Lines changed: 2 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -3,86 +3,6 @@
33
*
44
* @author Victor Jonsson, http://victorjonsson.se
55
* @license MIT
6-
* @version 2.2.135
6+
* @version 2.2.136
77
*/
8-
/**
9-
* jQuery Form Validator Module: Date
10-
* ------------------------------------------
11-
* Created by Victor Jonsson <http://www.victorjonsson.se>
12-
* Documentation and issue tracking on Github <https://github.com/victorjonsson/jQuery-Form-Validator/>
13-
*
14-
* The following validators will be added by this module:
15-
* - Time (HH:mmm)
16-
* - Birth date
17-
*
18-
* @website http://formvalidator.net/#location-validators
19-
* @license MIT
20-
* @version 2.2.135
21-
*/
22-
(function($) {
23-
24-
/*
25-
* Validate time hh:mm
26-
*/
27-
$.formUtils.addValidator({
28-
name : 'time',
29-
validatorFunction : function(time) {
30-
if (time.match(/^(\d{2}):(\d{2})$/) === null) {
31-
return false;
32-
} else {
33-
var hours = parseInt(time.split(':')[0],10);
34-
var minutes = parseInt(time.split(':')[1],10);
35-
if( hours > 23 || minutes > 59 ) {
36-
return false;
37-
}
38-
}
39-
return true;
40-
},
41-
errorMessage : '',
42-
errorMessageKey: 'badTime'
43-
});
44-
45-
/*
46-
* Is this a valid birth date
47-
*/
48-
$.formUtils.addValidator({
49-
name : 'birthdate',
50-
validatorFunction : function(val, $el, conf) {
51-
var dateFormat = 'yyyy-mm-dd';
52-
if($el.valAttr('format')) {
53-
dateFormat = $el.valAttr('format');
54-
}
55-
else if(typeof conf.dateFormat !== 'undefined') {
56-
dateFormat = conf.dateFormat;
57-
}
58-
59-
var inputDate = $.formUtils.parseDate(val, dateFormat);
60-
if (!inputDate) {
61-
return false;
62-
}
63-
64-
var d = new Date();
65-
var currentYear = d.getFullYear();
66-
var year = inputDate[0];
67-
var month = inputDate[1];
68-
var day = inputDate[2];
69-
70-
if (year === currentYear) {
71-
var currentMonth = d.getMonth() + 1;
72-
if (month === currentMonth) {
73-
var currentDay = d.getDate();
74-
return day <= currentDay;
75-
}
76-
else {
77-
return month < currentMonth;
78-
}
79-
}
80-
else {
81-
return year < currentYear && year > (currentYear - 124); // we can not live for ever yet...
82-
}
83-
},
84-
errorMessage : '',
85-
errorMessageKey: 'badDate'
86-
});
87-
88-
})(jQuery);
8+
!function(a){a.formUtils.addValidator({name:"time",validatorFunction:function(a){if(null===a.match(/^(\d{2}):(\d{2})$/))return!1;var b=parseInt(a.split(":")[0],10),c=parseInt(a.split(":")[1],10);return b>23||c>59?!1:!0},errorMessage:"",errorMessageKey:"badTime"}),a.formUtils.addValidator({name:"birthdate",validatorFunction:function(b,c,d){var e="yyyy-mm-dd";c.valAttr("format")?e=c.valAttr("format"):"undefined"!=typeof d.dateFormat&&(e=d.dateFormat);var f=a.formUtils.parseDate(b,e);if(!f)return!1;var g=new Date,h=g.getFullYear(),i=f[0],j=f[1],k=f[2];if(i===h){var l=g.getMonth()+1;if(j===l){var m=g.getDate();return m>=k}return l>j}return h>i&&i>h-124},errorMessage:"",errorMessageKey:"badDate"})}(jQuery);

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/#file-validators
1212
* @license MIT
13-
* @version 2.2.135
13+
* @version 2.2.136
1414
*/
1515
(function($, window) {
1616

0 commit comments

Comments
 (0)