From 9bf8518f400217f78d0d92a75e1337abedb14049 Mon Sep 17 00:00:00 2001 From: Patrick Sun Date: Wed, 14 Oct 2020 21:31:47 +1100 Subject: [PATCH] navigate to dashboard on click --- front-end/js/login.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/front-end/js/login.js b/front-end/js/login.js index c42bfef..b7a4a5e 100644 --- a/front-end/js/login.js +++ b/front-end/js/login.js @@ -14,10 +14,14 @@ var loginform = { "rows": [ { "view": "text", "label": "email", "name": "email", "type": "email" }, { "view": "text", "label": "Password", "name": "pass", "type": "password" }, - { "label": "Login", "view": "button", "height": 38, "borderless": 1 } + { "label": "Login", "view": "button", "height": 38, "borderless": 1 , + click: function(ev, id){ + window.location.href = "dashboard.html"; + } + } ], "borderless": 1, - "height": null + "height": null, }, { "template": "Please enter your password and email to login", "view": "template", "borderless": 1 } ]