mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
Merge pull request #4285 from olivergondza/unify-js-validation
[JENKINS-59605] Unify the JS validation behavior and the AJAX one
This commit is contained in:
1 file changed
+1
-1
@@ -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 = "<div/>";
|
||||
} else {
|
||||
this.targetElement.innerHTML = "<div class=error>" + message + "</div>";
|
||||
set = true;
|
||||
|
||||
Reference in new issue
Block a user