diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index cba3b04d48a2798cea09cdaac4b2538d8743c0b4..18309bdb9cf7e37618b5cde73d2e05ed690baad4 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -1430,14 +1430,12 @@ function refreshPart(id,url) { var hist = $(id); if (hist==null) console.log("There's no element that has ID of "+id) var p = hist.up(); - var next = hist.next(); - p.removeChild(hist); var div = document.createElement('div'); div.innerHTML = rsp.responseText; var node = $(div).firstDescendant(); - p.insertBefore(node, next); + p.replaceChild(node, hist); Behaviour.applySubtree(node); layoutUpdateCallback.call();