diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index f5a6aabb959a2292fc0bcdf8469157db3887718d..124bab0c1f201156584a36b011b1c36d952e7d13 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -439,7 +439,8 @@ function renderOnDemand(e,callback,noBehaviour) { while (c.firstChild!=null) { var n = c.firstChild; e.parentNode.insertBefore(n,e); - noBehaviour || Behaviour.applySubtree(n,true); + if (n.nodeType==1 && !noBehaviour) + Behaviour.applySubtree(n,true); } Element.remove(e);