Archived
1
0

add nntp login actions in mod panel

This commit is contained in:
jeff
2016-01-12 10:23:36 -05:00
parent 84626f6f96
commit 9ebe7d7c5d
2 changed files with 34 additions and 1 deletions

View File

@@ -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()