ACC SHELL
Path : /srv/www/vhosts/lps/js/ |
|
Current File : /srv/www/vhosts/lps/js/jquery.validationEngine-en.js |
(function($) {
$.fn.validationEngineLanguage = function() {};
$.validationEngineLanguage = {
newLang: function() {
$.validationEngineLanguage.allRules = {"required":{ // Add your regex rules here, you can take telephone as an example
"regex":"none",
"alertText":"* Toto pole je povinné.",
"alertTextCheckboxMultiple":"* Prosím zvolte variantu",
"alertTextCheckboxe":"* Toto pole je potřeba zatrhnout."},
"length":{
"regex":"none",
"alertText":"*Mezi ",
"alertText2":" a ",
"alertText3": " znaků je povoleno"},
"maxCheckbox":{
"regex":"none",
"alertText":"* Checks allowed Exceeded"},
"minCheckbox":{
"regex":"none",
"alertText":"* Prosím zvolte ",
"alertText2":" volby"},
"confirm":{
"regex":"none",
"alertText":"* Your field is not matching"},
"telephone":{
"regex":"/^[0-9\-\(\)\ ]+$/",
"alertText":"* Neplatné telefonní číslo"},
"email":{
"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
"alertText":"* Neplatná emailová adresa"},
"date":{
"regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
"alertText":"* Neplatné datum, musí být ve formátu YYYY-MM-DD"},
"onlyNumber":{
"regex":"/^[0-9\ ]+$/",
"alertText":"* Pouze čísla"},
"noSpecialCaracters":{
"regex":"/^[0-9a-zA-Z]+$/",
"alertText":"* Nejsou povoleny speciální znaky"},
"ajaxUser":{
"file":"validateUser.php",
"extraData":"name=eric",
"alertTextOk":"* This user is available",
"alertTextLoad":"* Loading, please wait",
"alertText":"* This user is already taken"},
"ajaxName":{
"file":"validateUser.php",
"alertText":"* This name is already taken",
"alertTextOk":"* This name is available",
"alertTextLoad":"* Loading, please wait"},
"onlyLetter":{
"regex":"/^[a-zA-Z\ \']+$/",
"alertText":"* Jsou povolena pouze písmena"},
"validate2fields":{
"nname":"validate2fields",
"alertText":"* Musíte mít jméno a příjmení"}
}
}
}
})(jQuery);
$(document).ready(function() {
$.validationEngineLanguage.newLang()
});
ACC SHELL 2018