From 270d967527ed4913972ff4efc86a9e1722e30996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Gond=C5=BEa?= Date: Fri, 11 Oct 2019 13:36:44 +0200 Subject: [PATCH] [JENKINS-59605] Unify the JS validation behavior --- war/src/main/webapp/scripts/hudson-behavior.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index d0e2645846..04270d61a5 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -495,7 +495,7 @@ function registerRegexpValidator(e,regexp,message) { e.onchange = function() { var set = oldOnchange != null ? oldOnchange.call(this) : false; if (this.value.match(regexp)) { - if (!set) this.targetElement.innerHTML = ""; + if (!set) this.targetElement.innerHTML = "
"; } else { this.targetElement.innerHTML = "
" + message + "
"; set = true;