From d88f13b55e758bb5cbb161df861f0bbda5bf1a6d Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 22 Apr 2011 18:24:09 +1000 Subject: [PATCH] bug fix for opera (and probably other browser?) --- main.js | 4 ++-- templates/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index c9c65b39..6da63177 100644 --- a/main.js +++ b/main.js @@ -124,8 +124,8 @@ function init() document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) - if(document.forms.delete) { - document.forms.delete.password.value = localStorage.password; + if(document.forms.postcontrols) { + document.forms.postcontrols.password.value = localStorage.password; } if (window.location.hash.indexOf('q') == 1) diff --git a/templates/main.js b/templates/main.js index 3c48c89b..a57ff972 100644 --- a/templates/main.js +++ b/templates/main.js @@ -124,8 +124,8 @@ function init() document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) - if(document.forms.delete) { - document.forms.delete.password.value = localStorage.password; + if(document.forms.postcontrols) { + document.forms.postcontrols.password.value = localStorage.password; } if (window.location.hash.indexOf('q') == 1)