提交 879c83b6 编写于 作者: K kohsuke

added behavior for <expandButton/>


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7475 71c3de6d-444a-0410-be80-ed276b4c234a
上级 40134a1a
......@@ -230,6 +230,17 @@ var hudsonRules = {
e = null; // avoid memory leak
},
"INPUT.expandButton" : function(e) {
makeButton(e,function(e) {
var link = e.target;
while(!Element.hasClassName(link,"advancedLink"))
link = link.parentNode;
link.style.display = "none";
link.nextSibling.style.display="block";
});
e = null; // avoid memory leak
},
// scripting for having default value in the input field
"INPUT.has-default-text" : function(e) {
var defaultValue = e.value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册