diff --git a/cards/qwikclock_punchinout.html b/cards/qwikclock_punchinout.html index a5a18b9..279369e 100644 --- a/cards/qwikclock_punchinout.html +++ b/cards/qwikclock_punchinout.html @@ -5,6 +5,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

QwikClock

- +
\ No newline at end of file diff --git a/js/login.js b/js/login.js index 92b8b8f..6ad4ddf 100644 --- a/js/login.js +++ b/js/login.js @@ -87,7 +87,8 @@ function loadQuickLogin() { } } -$("#userpassloginbtn").click(function () { +$("#userpass_form").submit(function (event) { + event.preventDefault(); var user = $("#username").val(); var pass = $("#password").val(); if (user != "" && pass != "") { @@ -95,7 +96,8 @@ $("#userpassloginbtn").click(function () { } }); -$("#mobilecodeloginbtn").click(function () { +$("#mobilecode_form").submit(function (event) { + event.preventDefault(); var code = $("#code").val(); if (code != "") { codelogin(code); diff --git a/pages/login.html b/pages/login.html index 45d742c..6ed2f09 100644 --- a/pages/login.html +++ b/pages/login.html @@ -25,7 +25,7 @@
-
+
@@ -37,21 +37,21 @@

- -
+ +
Open the Business app on your phone,
then press the button to get a code.
-
+
B-

- -
+ +