From 82d71588e9b9e69d1a8a737a4004dc420ee4cf6a Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 15:06:00 -0400 Subject: [PATCH] try fixing undefined behavior --- contrib/js/reply.js | 4 ++-- contrib/static/nntpchan.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index eadc1fc..93eac2a 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -390,8 +390,8 @@ function init(prefix) { var x = ev.pageX - $(this).width() / 2, y = ev.pageY - $(this).height() / 2; $dragging.offset({ - top: x, - left: y + top: y, + left: x }); } }); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index a51b831..44481f3 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -691,7 +691,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