]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commit
Attempt to sanitize the JS code + fix few bugs
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 14 Aug 2018 22:38:17 +0000 (00:38 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Wed, 15 Aug 2018 05:32:34 +0000 (07:32 +0200)
commitd638ead5a0ba9b2e3fed1ace5c04fd89364ffd3c
tree4e598342c0aba4ef990af17350e117b5b68597b9
parent064d309249ecc45c30f5880c3541c7829ff83e26
Attempt to sanitize the JS code + fix few bugs

The problems solved by this commit:

- When another user logs in during logout timeout, he was logged out
  automatically, even before choosing a coffee.

- Logout timer was not shown always when it should. After choosing a
  coffee, the timer was shown for a while. Then, after the user page
  was reloaded from the server, the timer disappeared and after an
  elapsed second, the timer was shown again.

- Local debug area was not shown and hidden consistently.

The first problem was resolved by canceling the logout timer after
login. The last two problems were fixed by centralizing of the UI
updates to a single function, which does the update based on the value
of state variables.
templates/main.js