diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-20 23:34:41 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-20 23:34:41 +1000 |
| commit | db8173fe62829644a6cdf2e6a787b2ec2244c15b (patch) | |
| tree | 3742477111d770a011261f2c27c134978e4f4151 /templates/main.js | |
| parent | c3434d29fd7421f11d1e2e225e5c417bcee70556 (diff) | |
Remember post password if entered manually
Diffstat (limited to 'templates/main.js')
| -rw-r--r-- | templates/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/main.js b/templates/main.js index 78054a3b..144c5f62 100644 --- a/templates/main.js +++ b/templates/main.js @@ -168,6 +168,9 @@ function dopost(form) { if (form.elements['name']) { localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, ''); } + if (form.elements['password']) { + localStorage.password = form.elements['password'].value; + } if (form.elements['email'] && form.elements['email'].value != 'sage') { localStorage.email = form.elements['email'].value; } |
