diff --git a/contrib/js/reply.js b/contrib/js/reply.js index bba38d4..e13b034 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -158,7 +158,7 @@ DynReply.prototype.translate = function(dx, dy) { } DynReply.prototype.moveTo = function(x,y) { - console.log("moveto",x,y); + console.log("moveto",this, x,y); if(x && y && x > 0 && y > 0) { var nx = document.body.clientLeft - x ; if (nx > 0 && y > 0 && nx < document.body.clientWidth && y < document.body.clientHeight ) { diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 6fa9c2d..04e16a6 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -56,7 +56,7 @@ table.appendChild(tbody);this.form.appendChild(table);this.elem.appendChild(this DynReply.prototype.getX=function(){return this.x;} DynReply.prototype.getY=function(){return this.y;} DynReply.prototype.translate=function(dx,dy){if(this.x&&this.y){var x=this.x+dx;var y=this.y+dy;this.moveTo(x,y);};} -DynReply.prototype.moveTo=function(x,y){console.log("moveto",x,y);if(x&&y&&x>0&&y>0){var nx=document.body.clientLeft-x;if(nx>0&&y>0&&nx0&&y>0){var nx=document.body.clientLeft-x;if(nx>0&&y>0&&nx