From 3283e53c5c2e7c02db05d6bce926f232cfa907e1 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 4 May 2016 14:02:04 -0400 Subject: [PATCH] show reply box on ukko page --- contrib/js/reply.js | 2 +- contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index 04423a6..46c5d04 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -354,7 +354,7 @@ function inject_hover_for_element(elem) { function init(prefix) { // inject posthover ... inject_hover_for_element(document); - if ( /\.html$/.test(document.location.pathname) ) { + if ( /\.html$/.test(document.location.pathname) && ( ! /ukko/.test(document.location.pathname)) ) { // board / thread page console.log("not loading reply widget"); } else { diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index bf1b7fc..af28109 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -689,7 +689,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