diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index a90e200..eb438b3 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -259,9 +259,10 @@ function init(prefix) { inject_hover_for_element(document); // dynamic post reply draggable var rpl = getReplyTo(); + rpl.setPrefix(prefix); var e = rpl.elem; e.setAttribute("draggable", "true"); - e.ondragover = function(ev) { + e.ondrop = function(ev) { e.style.top = ev.y; e.style.left = ev.x; } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index e43501a..3aec898 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