summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-22 18:24:09 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-22 18:24:09 +1000
commitd88f13b55e758bb5cbb161df861f0bbda5bf1a6d (patch)
tree3930db80221a2dce025f87bc41ba0674b1a57670
parent56ff8aafc0ef1b433fad3d0bd6a93dfe9e383d4c (diff)
bug fix for opera (and probably other browser?)
-rw-r--r--main.js4
-rw-r--r--templates/main.js4
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)