From 25e77ae425e49fa90ebf94d9e7074d5da58d0530 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 22 Apr 2011 18:06:44 +1000 Subject: fixed bug automatically filling in mod.php login password --- main.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'main.js') diff --git a/main.js b/main.js index cef82687..d1d53b44 100644 --- a/main.js +++ b/main.js @@ -51,7 +51,7 @@ function citeReply(id) { document.getElementById('body').value += '>>' + id + '\n'; } -var selectedstyle = 'Yotsuba B'; +var selectedstyle = 'Yotsuba'; var styles = [ ['Yotsuba B', '/board/default.css'], ['Yotsuba', '/board/yotsuba.css'] @@ -87,15 +87,14 @@ function init() newElement.appendChild(style); } + document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) + if(!localStorage.password) localStorage.password = generatePassword(); - elements = document.getElementsByName('password'); - for(x=0;x