Skip to content

Commit

Permalink
netteForms: added variable Nette.invalidNumberMessage with error mess…
Browse files Browse the repository at this point in the history
…age [Closes #252]
  • Loading branch information
dg committed Jul 31, 2020
1 parent 9fc4372 commit ec267fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/netteForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

Nette.formErrors = [];
Nette.version = '3.0';
Nette.invalidNumberMessage = 'Please enter a valid value.';


/**
Expand Down Expand Up @@ -188,7 +189,7 @@

if (elem.type === 'number' && !elem.validity.valid) {
if (top && !onlyCheck) {
Nette.addError(elem, 'Please enter a valid value.');
Nette.addError(elem, Nette.invalidNumberMessage);
}
return false;
}
Expand Down

0 comments on commit ec267fd

Please sign in to comment.