first commit

This commit is contained in:
2024-11-11 15:28:20 +01:00
commit 3f5649dbc7
6231 changed files with 999089 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/* eslint-disable func-names */
/* Validator number between */
jQuery.validator.addMethod(
"number_between",
function(value, element, param) {
let val = value;
val = val.replace(",", ".");
const isNumber =
!isNaN(parseFloat(val)) &&
isFinite(val) &&
parseFloat(val) >= parseFloat(param[0]) &&
parseFloat(val) <= parseFloat(param[1]);
return this.optional(element) || isNumber;
},
"Proszę wpisać wartość pomiędzy {0} i {1}."
);