diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 8114e0d..f32afef 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -352,13 +352,13 @@ function init(prefix) { r.post(function(j) { if(j.error) { // an error happened - r.showError(h.error); + r.showError(j.error); } else { // we're good r.showMessage("posted as "+j.message_id); } }, function(err) { - alert(err); + r.showError(err); }); r.showMessage("posting... "); } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index ac1db5f..2e1a35b 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -43,7 +43,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