From 9ebe7d7c5db318e84efd232dc9e10d9a2f961cda Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 12 Jan 2016 10:23:36 -0500 Subject: [PATCH] add nntp login actions in mod panel --- contrib/static/mod.js | 17 +++++++++++++++++ contrib/templates/default/modpage.mustache | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index b06a2b3..d458cf3 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -64,6 +64,23 @@ function nntpchan_key_add() { }); } +function get_nntp_username() { + var e = document.getElementById("nntpchan_nntp_username"); + return e.value; +} + +function get_nntp_passwd() { + var e = document.getElementById("nntpchan_nntp_passwd"); + return e.value; +} + +function nntpchan_admin_nntp(method) { + nntpchan_admin(method, { + username: get_nntp_username(), + passwd: get_nntp_passwd() + }) +} + function nntpchan_admin_board(method) { nntpchan_admin(method, { newsgroup: get_board_target() diff --git a/contrib/templates/default/modpage.mustache b/contrib/templates/default/modpage.mustache index dd2976c..2a913ce 100644 --- a/contrib/templates/default/modpage.mustache +++ b/contrib/templates/default/modpage.mustache @@ -39,11 +39,27 @@
+
+
nntp login
+
+
+
+ +
+
+ +
+
+
board actions
- +