aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/public/js/controllers/loginController.js
blob: a894aed1046f3313dc1bb07c1527425aa1637c2d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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(); });

}