From fd251de5079bacb7bb13dfd438311f304aa5a5bc Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Tue, 28 Feb 2012 11:01:37 +0900 Subject: [PATCH] hooking up in-page navigation menu --- .../main/resources/hudson/model/Job/configure.jelly | 13 +++++++++---- core/src/main/resources/lib/form/section_.js | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/core/src/main/resources/hudson/model/Job/configure.jelly b/core/src/main/resources/hudson/model/Job/configure.jelly index 119737a505..c1d75c5676 100644 --- a/core/src/main/resources/hudson/model/Job/configure.jelly +++ b/core/src/main/resources/hudson/model/Job/configure.jelly @@ -36,10 +36,15 @@ THE SOFTWARE.
${%LOADING}
diff --git a/core/src/main/resources/lib/form/section_.js b/core/src/main/resources/lib/form/section_.js index 22c7352bc6..5d681463a8 100644 --- a/core/src/main/resources/lib/form/section_.js +++ b/core/src/main/resources/lib/form/section_.js @@ -35,7 +35,7 @@ var section = (function (){ * For root node, the 'section' property refers to null. */ "buildTree" : function(root) { - root = $(root); + root = $(root||document.body); /** * Recursively visit elements and find all section headers.