From ae6a8489b65fb28a3381267bcfacf4a1d42047c9 Mon Sep 17 00:00:00 2001
From: Pavel Vomacka <pvomacka@redhat.com>
Date: Fri, 21 Jul 2017 18:49:01 +0200
Subject: [PATCH] WebUI: fix jslint error
jslint warned about parsing string to integer without explicit radix.
This error was introduced in commit 3cac851 .
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Felipe Barreto <fbarreto@redhat.com>
---
install/ui/src/freeipa/field.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js
index f998b578c38d91819fea418ea50e03589a691cbf..6c99ddbe2e08522c14980e42ad63e28e5b739794 100644
--- a/install/ui/src/freeipa/field.js
+++ b/install/ui/src/freeipa/field.js
@@ -1080,7 +1080,7 @@ field.validator = IPA.validator = function(spec) {
return integer_check;
}
- var num = parseInt(value);
+ var num = parseInt(value, 10);
if (num <= 0) {
return that.false_result(
--
2.13.6