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 --- templates/index.html | 2 +- templates/main.js | 11 +++++------ templates/page.html | 1 + templates/thread.html | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index a7bdfd18..4573431d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -97,7 +97,7 @@
-
+ {mod?} {body} diff --git a/templates/main.js b/templates/main.js index 5e489166..bf880036 100644 --- a/templates/main.js +++ b/templates/main.js @@ -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 + {pm?
{pm}

} diff --git a/templates/thread.html b/templates/thread.html index b3d07c92..f857923f 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -88,7 +88,7 @@
-
+ {mod?} {body} -- cgit v1.3