summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-22 18:17:48 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-22 18:17:48 +1000
commit56ff8aafc0ef1b433fad3d0bd6a93dfe9e383d4c (patch)
tree868cc5b10d7fb02d66f85f2bbc50d0ffe87a01cb
parentc4913ab883b30cd3eb2b4d6bb7854563e59bb482 (diff)
...
-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 a0816837..c9c65b39 100644
--- a/main.js
+++ b/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 = '';
}
}
diff --git a/templates/main.js b/templates/main.js
index 83de6485..3c48c89b 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -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 = '';
}
}