Skip to content

Commit

Permalink
[TASK] Update parsley validator call in JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Mar 12, 2017
1 parent 5cd705a commit 777b5f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Resources/Public/JavaScripts/ZipValidation.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/**
* <input type="text" data-parsley-custom100="1" data-parsley-error-message="Please try again" />
*/

window.ParsleyValidator
.addValidator('custom100', function (value, requirement) {
window.Parsley.addValidator(
'custom100', function (value, requirement) {
if (value >= 80000) {
return true;
}
return false;
}, 32)
.addMessage('en', 'custom100', 'Error');
.addMessage('en', 'custom100', 'Error');

0 comments on commit 777b5f4

Please sign in to comment.