提交 5aca73f1 编写于 作者: K Kohsuke Kawaguchi

[JENKINS-15617]

This needs to be eval, not geval.
Plus I forgot to return the value.
上级 51f508ba
......@@ -369,7 +369,7 @@ function parseHtml(html) {
*/
function geval(script) {
// see http://perfectionkills.com/global-eval-what-are-the-options/
(this.execScript || eval)(script);
return (this.execScript || eval)(script);
}
/**
......@@ -404,7 +404,7 @@ var tooltip;
function registerValidator(e) {
e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling;
e.targetUrl = function() {
return geval(this.getAttribute("checkUrl"));
return eval(this.getAttribute("checkUrl")); // need access to 'this'
};
var method = e.getAttribute("checkMethod");
if (!method) method = "get";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册