From f0fd23e6a9f3f8396242ec91829c74aab37244c5 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 12:33:29 -0400 Subject: [PATCH] more logging --- contrib/js/backlink.js | 1 + contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index eaccf3b..ccd79a8 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -174,6 +174,7 @@ DynReply.prototype.setRoot = function(roothash) { // reply box function function nntpchan_reply(prefix, parent, shorthash) { + console.log(parent); if (prefix && parent && parent.roothash && parent.boardname) { var boardname = parent.boardname; var roothash = parent.roothash; diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 9b0a601..728be6b 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -25,7 +25,7 @@ DynReply.prototype.setPrefix=function(prefix){this.prefix=prefix;} DynReply.prototype.hide=function(){this.elem.style.display='none';} DynReply.prototype.setBoard=function(boardname){if(boardname){this.board=boardname;}} DynReply.prototype.setRoot=function(roothash){if(roothash){this.roothash=roothash;}} -function nntpchan_reply(prefix,parent,shorthash){if(prefix&&parent&&parent.roothash&&parent.boardname){var boardname=parent.boardname;var roothash=parent.roothash;var replyto=getReplyTo();replyto.setBoard(boardname);replyto.setRoot(roothash);replyto.setPrefix(prefix);replyto.show();} +function nntpchan_reply(prefix,parent,shorthash){console.log(parent);if(prefix&&parent&&parent.roothash&&parent.boardname){var boardname=parent.boardname;var roothash=parent.roothash;var replyto=getReplyTo();replyto.setBoard(boardname);replyto.setRoot(roothash);replyto.setPrefix(prefix);replyto.show();} var elem=document.getElementById("postform_message");if(elem) {elem.value+=">>"+shorthash.substr(0,10)+"\n";}} function inject_hover(prefix,el,parent){if(!prefix){throw"prefix is not defined";}