diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 8388235..dbebcc6 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -42,6 +42,17 @@ function nntpchan_unban() { }) } +function get_board_target() { + var e = document.getElementById("nntpchan_board_target"); + return e.value; +} + +function nntpchan_admin_board(method) { + nntpchan_admin(method, { + newsgroup: get_board_target() + }) +} + function nntpchan_admin(method, param) { nntpchan_mod({ name:"admin", diff --git a/contrib/templates/default/modpage.mustache b/contrib/templates/default/modpage.mustache index b3287bf..e631909 100644 --- a/contrib/templates/default/modpage.mustache +++ b/contrib/templates/default/modpage.mustache @@ -26,6 +26,24 @@