summaryrefslogtreecommitdiff
path: root/templates/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main.js')
-rw-r--r--templates/main.js4
1 files changed, 2 insertions, 2 deletions
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 = '';
}
}