Browse Source

...

pull/40/head
Savetheinternet 13 years ago
parent
commit
56ff8aafc0
  1. 4
      main.js
  2. 4
      templates/main.js

4
main.js

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

4
templates/main.js

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

Loading…
Cancel
Save