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

View File

@ -97,12 +97,12 @@ function rememberStuff() {
document.cookie = 'serv={};expires=0;path=/;';
}
if(saved[document.location]) {
document.getElementsByTagName('form')[0].body.value = saved[document.location];
document.forms.post.body.value = saved[document.location];
}
}
if(localStorage.body) {
document.getElementsByTagName('form')[0].body.value = localStorage.body;
document.forms.post.body.value = localStorage.body;
localStorage.body = '';
}
}

View File

@ -97,12 +97,12 @@ function rememberStuff() {
document.cookie = '{config[cookies][js]}={};expires=0;path=/;';
}
if(saved[document.location]) {
document.getElementsByTagName('form')[0].body.value = saved[document.location];
document.forms.post.body.value = saved[document.location];
}
}
if(localStorage.body) {
document.getElementsByTagName('form')[0].body.value = localStorage.body;
document.forms.post.body.value = localStorage.body;
localStorage.body = '';
}
}