Add Failed login message
This commit is contained in:
parent
313533d25d
commit
fe06bd586a
2 changed files with 8 additions and 4 deletions
|
@ -10,23 +10,27 @@ mainApp.controller('loginCtrl', function ($scope,$interval,$sce)
|
|||
// Define default states
|
||||
$('#loginModal').modal({backdrop: 'static', keyboard: false});
|
||||
$('#loadingLoginButton').hide();
|
||||
|
||||
$('#failedToLoginAlert').hide();
|
||||
|
||||
|
||||
$('#loginButton').click(function(){
|
||||
$('#loginButton').hide();
|
||||
$('#loadingLoginButton').show();
|
||||
|
||||
$('#failedToLoginAlert').hide();
|
||||
|
||||
|
||||
|
||||
$interval(
|
||||
function()
|
||||
{
|
||||
$('#failedToLoginAlert').show();
|
||||
|
||||
$('#loginButton').show();
|
||||
$('#loadingLoginButton').hide();
|
||||
|
||||
}, 2000,1);
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue