From 43bb6e4c5cedbe58f108d047eb994820a2963812 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 14:23:45 -0400 Subject: [PATCH] try fix --- contrib/js/reply.js | 3 +-- contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index be7e891..ec66257 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -160,14 +160,13 @@ DynReply.prototype.translate = function(dx, dy) { } DynReply.prototype.moveTo = function(x,y) { - console.log(this); + console.log("moveto",x,y); if(x && y) { var nx = document.body.clientLeft - x ; if (nx > 0 && y > 0 && nx < document.body.clientWidth && y < document.body.clientHeight ) { this.elem.setAttribute("style", "top: "+y+"px; right: "+nx+"px;"); this.x = x; this.y = y; - console.log(this, this.x, this.y); } } else { console.log("!!", x, y); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 5ea2d95..37fc64c 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(this);if(x&&y){var nx=document.body.clientLeft-x;if(nx>0&&y>0&&nx0&&y>0&&nx