diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-20 12:43:33 +0100 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-20 12:43:33 +0100 |
commit | 266767e6b31d4799b218a7dc9ffd0d6f2eca92a8 (patch) | |
tree | e3e68b3acdfb276cadcc23d0028a6c1dd3bc8f21 /public/js/controllers/loginController.js | |
parent | Edited "Sign in" button - for fun (diff) | |
download | Divid-266767e6b31d4799b218a7dc9ffd0d6f2eca92a8.tar.gz |
login screen
Diffstat (limited to 'public/js/controllers/loginController.js')
-rw-r--r-- | public/js/controllers/loginController.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/public/js/controllers/loginController.js b/public/js/controllers/loginController.js new file mode 100644 index 0000000..a894aed --- /dev/null +++ b/public/js/controllers/loginController.js @@ -0,0 +1,14 @@ + +function LoginController() +{ + +// bind event listeners to button clicks // + + $('#login-form #forgot-password').click(function(){ $('#get-credentials').modal('show');}); + +// automatically toggle focus between the email modal window and the login form // + + $('#get-credentials').on('shown', function(){ $('#email-tf').focus(); }); + $('#get-credentials').on('hidden', function(){ $('#user-tf').focus(); }); + +}
\ No newline at end of file |