newboard.js prepends 'overchan.' if it's not present in the name
This commit is contained in:
parent
d249d373c1
commit
e88c8f78ba
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user