mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-30 16:47:14 +09:00
This is an initial start at input validation on the client side. Currently, this only applies to email address fields but will be enhanced by future commits.
35 lines
1.5 KiB
JavaScript
35 lines
1.5 KiB
JavaScript
(function( factory ) {
|
|
if ( typeof define === "function" && define.amd ) {
|
|
define( ["jquery", "../jquery.validate"], factory );
|
|
} else if (typeof module === "object" && module.exports) {
|
|
module.exports = factory( require( "jquery" ) );
|
|
} else {
|
|
factory( jQuery );
|
|
}
|
|
}(function( $ ) {
|
|
|
|
/*
|
|
* Translated default messages for the jQuery validation plugin.
|
|
* Locale: LT (Lithuanian; lietuvių kalba)
|
|
*/
|
|
$.extend( $.validator.messages, {
|
|
required: "Šis laukas yra privalomas.",
|
|
remote: "Prašau pataisyti šį lauką.",
|
|
email: "Prašau įvesti teisingą elektroninio pašto adresą.",
|
|
url: "Prašau įvesti teisingą URL.",
|
|
date: "Prašau įvesti teisingą datą.",
|
|
dateISO: "Prašau įvesti teisingą datą (ISO).",
|
|
number: "Prašau įvesti teisingą skaičių.",
|
|
digits: "Prašau naudoti tik skaitmenis.",
|
|
creditcard: "Prašau įvesti teisingą kreditinės kortelės numerį.",
|
|
equalTo: "Prašau įvestį tą pačią reikšmę dar kartą.",
|
|
extension: "Prašau įvesti reikšmę su teisingu plėtiniu.",
|
|
maxlength: $.validator.format( "Prašau įvesti ne daugiau kaip {0} simbolių." ),
|
|
minlength: $.validator.format( "Prašau įvesti bent {0} simbolius." ),
|
|
rangelength: $.validator.format( "Prašau įvesti reikšmes, kurių ilgis nuo {0} iki {1} simbolių." ),
|
|
range: $.validator.format( "Prašau įvesti reikšmę intervale nuo {0} iki {1}." ),
|
|
max: $.validator.format( "Prašau įvesti reikšmę mažesnę arba lygią {0}." ),
|
|
min: $.validator.format( "Prašau įvesti reikšmę didesnę arba lygią {0}." )
|
|
} );
|
|
return $;
|
|
})); |