未验证 提交 40278bc5 编写于 作者: B Basil Crow 提交者: GitHub

[JENKINS-70970] Remove Prototype `Element.up` usages from `textarea.js` (#7797)

上级 5e41330e
......@@ -29,9 +29,9 @@ Behaviour.specify("TEXTAREA.codemirror", "textarea", 0, function (e) {
scroller.style.height = Math.max(lineHeight * lineCount + 30, 130) + "px";
// the form needs to be populated before the "Apply" button
if (e.up("form")) {
if (e.closest("form")) {
// Protect against undefined element
Element.on(e.up("form"), "jenkins:apply", function () {
Element.on(e.closest("form"), "jenkins:apply", function () {
e.value = codemirror.getValue();
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册