From 00fbc305be9496931560528b4b7a9d621d943b07 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 23 Sep 2015 08:54:49 -0400 Subject: [PATCH] add more actions to mod panel --- contrib/static/mod.js | 11 +++++++++++ contrib/templates/default/modpage.mustache | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) 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 @@
+
+
board actions
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+
lightweight actions @@ -34,6 +52,7 @@
+