diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index a786824..c077469 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -263,10 +263,11 @@ function init(prefix) { var e = rpl.elem; e.setAttribute("draggable", "true"); e.ondragend = function(ev) { - console.log(ev); var el = document.getElementById("postform_container"); el.style.top = "" + ev.y; el.style.left = "" + ev.x; + console.log(el); + ev.preventDefault(); } } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 8de9a41..d9f9389 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -37,7 +37,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