Skip to content

Commit

Permalink
DateFormat throw's Javascript error if date is not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Moreno committed Sep 6, 2015
1 parent eccf6c5 commit 64f6f99
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 1.1.3 (2015-09-07)

Bugfixes:

- Issues resolved:
- DateFormat generate javascript error if date is not valid


## 1.1.2 (2015-09-05)

Features:
Expand Down
3 changes: 2 additions & 1 deletion public/js/jsvalidation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/js/jsvalidation.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/jsvalidation.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion resources/assets/js/validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ $.extend(true, laravelValidation, {
* @return {boolean}
*/
DateFormat: function(value, element, params) {
return !isNaN(laravelValidation.helpers.gessDate(value,params[0]).getTime());
return laravelValidation.helpers.parseTime(value,params[0])!=false;
//return !isNaN(laravelValidation.helpers.gessDate(value,params[0]).getTime());
},

/**
Expand Down

0 comments on commit 64f6f99

Please sign in to comment.