From 9b75fe5c9e9fcb6c1a5862f93be334eb8f5764e5 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Mon, 29 Apr 2013 10:17:04 -0700 Subject: [PATCH] Hopefully this helps us reduce the screen glitch --- war/src/main/webapp/scripts/hudson-behavior.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index cba3b04d48..18309bdb9c 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(); -- GitLab