1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-16 19:40:44 +01:00

Fix impostazione limiti per i numeri

This commit is contained in:
Dasc3er 2020-09-04 13:26:58 +02:00
parent 401fe5286e
commit 4db9900d5a

View File

@ -2,8 +2,8 @@ function initNumbers() {
$('.decimal-number').not('.bound').each(function () {
let $this = $(this);
let min = $this.attr('min-value') ? $this.attr('min-value') : "-10000000000000";
let max = $this.attr('max-value') ? $this.attr('max-value') : "10000000000000";
let min = $this.attr('min-value') && $this.attr('min-value') !== "undefined" ? $this.attr('min-value') : "-10000000000000";
let max = $this.attr('max-value') && $this.attr('max-value') !== "undefined" ? $this.attr('max-value') : "10000000000000";
let decimals = $this.attr('decimals') ? $this.attr('decimals') : globals.cifre_decimali;