提交 efc0ca16 编写于 作者: J Jesse Glick

Merge branch 'master' of github.com:jenkinsci/jenkins

......@@ -15,9 +15,11 @@ Behaviour.specify("TEXTAREA.codemirror", 'textarea', 0, function(e) {
scroller.style.height = h+"px";
// the form needs to be populated before the "Apply" button
Element.on(e.up('form'),"jenkins:apply", function() {
e.value = codemirror.getValue()
})
if(e.up('form')) { // Protect against undefined element
Element.on(e.up('form'),"jenkins:apply", function() {
e.value = codemirror.getValue()
})
}
});
Behaviour.specify("DIV.textarea-preview-container", 'textarea', 100, function (e) {
......@@ -56,4 +58,4 @@ Behaviour.specify("DIV.textarea-preview-container", 'textarea', 100, function (e
$(hidePreview).hide();
$(previewDiv).hide();
};
});
\ No newline at end of file
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册