Fix impostazione limiti per i numeri

This commit is contained in:
Dasc3er 2020-09-04 13:26:58 +02:00
parent 401fe5286e
commit 4db9900d5a
1 changed files with 2 additions and 2 deletions

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;