From 879c83b6923359b4783426fb5290aa00b8606cfc Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 10 Mar 2008 04:33:16 +0000 Subject: [PATCH] added behavior for git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7475 71c3de6d-444a-0410-be80-ed276b4c234a --- war/resources/scripts/hudson-behavior.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/war/resources/scripts/hudson-behavior.js b/war/resources/scripts/hudson-behavior.js index 1ec9074a47..5d438e77ae 100644 --- a/war/resources/scripts/hudson-behavior.js +++ b/war/resources/scripts/hudson-behavior.js @@ -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; -- GitLab