mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
...
This commit is contained in:
parent
c4913ab883
commit
56ff8aafc0
4
main.js
4
main.js
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user