Skip to content

Commit

Permalink
custom: number max, min -> allow point input
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrounger committed Aug 28, 2019
1 parent c3a72df commit 116d085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ if (typeof customPostInits !== 'undefined') {

Input.number_max.keyup(function () {
// Nur pos / neg integer erlauben
let regEx = /^[-]?[0-9]*$/
let regEx = /^[-]?[0-9\.]*$/

if (!regEx.test(this.value)) {
gMain.showError(_("only numbers allowed"));
Expand All @@ -668,7 +668,7 @@ if (typeof customPostInits !== 'undefined') {

Input.number_min.keyup(function () {
// Nur pos / neg integer erlauben
let regEx = /^[-]?[0-9]*$/
let regEx = /^[-]?[0-9\.]*$/

if (!regEx.test(this.value)) {
gMain.showError(_("only numbers allowed"));
Expand Down

0 comments on commit 116d085

Please sign in to comment.