From 71b40660785553028358328b4c3303e0f7dd903a Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 10 Jun 2010 22:59:04 +0000 Subject: [PATCH] added a CSS class for YUI button with a drop-down menu. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31930 71c3de6d-444a-0410-be80-ed276b4c234a --- war/resources/scripts/hudson-behavior.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/war/resources/scripts/hudson-behavior.js b/war/resources/scripts/hudson-behavior.js index d12d5a1978..6d78dc7d0a 100644 --- a/war/resources/scripts/hudson-behavior.js +++ b/war/resources/scripts/hudson-behavior.js @@ -939,7 +939,13 @@ var hudsonRules = { e = null; // avoid memory leak }, - "DIV.behavior-loading" : function(e) { e.style.display = 'none' } + "DIV.behavior-loading" : function(e) { + e.style.display = 'none'; + }, + + ".button-with-dropdown" : function (e) { + new YAHOO.widget.Button(e, { type: "menu", menu: e.nextSibling }); + } }; function applyTooltip(e,text) { -- GitLab