diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 2db0160..582ba09 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -367,7 +367,10 @@ function init(prefix) { } e.onclick = postit; var f = document.querySelector("form"); - f.onsubmit = postit; + f.onsubmit = function() { + postit(); + return false; + } } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index b5b7a47..15634e3 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -44,7 +44,7 @@ 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