diff --git a/contrib/js/reply.js b/contrib/js/reply.js index ce02245..b2ebb37 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -399,12 +399,12 @@ function init(prefix) { }, false); e.addEventListener("dragend", function(ev) { + var rpl = getReplyTo(); console.log(mouseDownX, mouseDownY); var ox = rpl.getX(); var oy = rpl.getY(); var dx = ox + ev.screenX - mouseDownX; var dy = oy + ev.screenY - mouseDownY; - var rpl = getReplyTo(); console.log(ox, oy, dx, dy); rpl.translate(dx, dy); }, false); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 466cb39..d1f937d 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -84,7 +84,7 @@ parent.appendChild(wrapper);parent.backlink=false;},function(msg){var wrapper=do parent.backlink=true;}};parent.backlink=true;} function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx