mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 08:44:46 +02:00
Fix issue where Inputfield showIf condition that matches a single period "." was not working correctly due to jQuery adjustments from a couple weeks ago
This commit is contained in:
@@ -1050,7 +1050,7 @@ function InputfieldDependencies($target) {
|
|||||||
str = str.toString().trim();
|
str = str.toString().trim();
|
||||||
|
|
||||||
if(str.length > 0) {
|
if(str.length > 0) {
|
||||||
if(/^-?[\d.]+$/.test(str)) {
|
if(/^-?\d[\d.]*$/.test(str)) {
|
||||||
// isNumeric
|
// isNumeric
|
||||||
} else {
|
} else {
|
||||||
return str;
|
return str;
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user