bug fix for opera (and probably other browser?)

This commit is contained in:
Savetheinternet 2011-04-22 18:24:09 +10:00
parent 56ff8aafc0
commit d88f13b55e
2 changed files with 4 additions and 4 deletions

View File

@ -124,8 +124,8 @@ function init()
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild)
if(document.forms.delete) { if(document.forms.postcontrols) {
document.forms.delete.password.value = localStorage.password; document.forms.postcontrols.password.value = localStorage.password;
} }
if (window.location.hash.indexOf('q') == 1) if (window.location.hash.indexOf('q') == 1)

View File

@ -124,8 +124,8 @@ function init()
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild) document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild)
if(document.forms.delete) { if(document.forms.postcontrols) {
document.forms.delete.password.value = localStorage.password; document.forms.postcontrols.password.value = localStorage.password;
} }
if (window.location.hash.indexOf('q') == 1) if (window.location.hash.indexOf('q') == 1)