# HG changeset patch # User neko259 # Date 2014-01-04 22:26:58 # Node ID 42a9f21c1ae727281beff867b718939eff03c363 # Parent f71c817c69545636a15d2f654de0591e53aaa881 Fixed reflink popups messing up the thread DOM diff --git a/boards/static/js/refpopup.js b/boards/static/js/refpopup.js --- a/boards/static/js/refpopup.js +++ b/boards/static/js/refpopup.js @@ -57,7 +57,7 @@ function showPostPreview(e) { cln.innerHTML = "
" + gettext('Loading...') + "
"; if($('div[id='+pNum+']').length > 0) { - var postdata = $('div[id='+pNum+']').wrap("
").parent().html(); + var postdata = $('div[id='+pNum+']').clone().wrap("
").parent().html(); mkPreview(cln, postdata); } else {