From e88c8f78ba5a28ddea394449c5fa6da91d69317e Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 4 Oct 2015 06:32:10 -0400 Subject: [PATCH] newboard.js prepends 'overchan.' if it's not present in the name --- contrib/static/newboard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/static/newboard.js b/contrib/static/newboard.js index 8cf96f7..99b1a2f 100644 --- a/contrib/static/newboard.js +++ b/contrib/static/newboard.js @@ -1,6 +1,10 @@ function createBoard() { var form = document.getElementById("postform"); var e = document.getElementById("boardname"); - form.action = form.action + e.value; + var board = e.value; + if ( ! board.startsWith("overchan.") ) { + board = "overchan." + board; + } + form.action = form.action + board; form.submit(); }