diff options
| author | 2020-12-31 00:13:29 +0100 | |
|---|---|---|
| committer | 2020-12-31 00:13:29 +0100 | |
| commit | 5ca961b8d5130b54d3c5ec664574eac39a88de87 (patch) | |
| tree | bf703bf1c401dcfa85dbcbe1ce66a4a51ba7da89 /p/scripts/extra.js | |
| parent | 85f5dd4bef40419d5b63b0e845af3f09a6fb7f1b (diff) | |
Fix bugs in anomymous mode (#3305)
* Fix bugs in anomymous mode
Login bug (submit button not working) and refresh bug (JS null
exception, and then 403).
* Take advantage of existing variable
Diffstat (limited to 'p/scripts/extra.js')
| -rw-r--r-- | p/scripts/extra.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/extra.js b/p/scripts/extra.js index 4d4f3f171..3cb7b93aa 100644 --- a/p/scripts/extra.js +++ b/p/scripts/extra.js @@ -51,7 +51,7 @@ function init_crypto_form() { forgetOpenCategories(); - const submit_button = document.querySelector('button[type="submit"]'); + const submit_button = document.getElementById('loginButton'); submit_button.disabled = false; crypto_form.onsubmit = function (e) { |
