summaryrefslogtreecommitdiffstats
path: root/js/login.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-02-17 15:15:55 +0100
committerrstular <rok@stular.eu>2020-02-17 15:15:55 +0100
commitfefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94 (patch)
tree803184e820a5002418a19ce4685d4621b7910b76 /js/login.js
parentneki sm delu, sam ne do konca (diff)
downloadbeziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar
beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.gz
beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.bz2
beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.lz
beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.xz
beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.tar.zst
beziapp-fefeee7ccf1b6fb6a133c8b9c5eb07b1760c2d94.zip
Diffstat (limited to '')
-rw-r--r--js/login.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/js/login.js b/js/login.js
index 6a68d98..aba0fa3 100644
--- a/js/login.js
+++ b/js/login.js
@@ -7,17 +7,18 @@ document.addEventListener("DOMContentLoaded", () => {
function setupEventListeners() {
// Setup login button listener
- $("#login-button").click(function () {
+ $("#login-button").click(() => {
login();
});
- window.addEventListener("keyup", function(event) {
- // Number 13 is the "Enter" key on the keyboard
- if (event.keyCode === 13) {
- // Cancel the default action, if needed
- event.preventDefault();
- login();
- }
- });
+
+ window.addEventListener("keyup", (event) => {
+ // Number 13 is the "Enter" key on the keyboard
+ if (event.keyCode === 13) {
+ // Cancel the default action, if needed
+ event.preventDefault();
+ login();
+ }
+ });
}
// Handle login button click