33 lines
732 B
JavaScript
33 lines
732 B
JavaScript
![]() |
/*
|
||
|
* To change this license header, choose License Headers in Project Properties.
|
||
|
* To change this template file, choose Tools | Templates
|
||
|
* and open the template in the editor.
|
||
|
*/
|
||
|
|
||
|
|
||
|
mainApp.controller('loginCtrl', function ($scope,$interval,$sce)
|
||
|
{
|
||
|
// Define default states
|
||
|
$('#loginModal').modal({backdrop: 'static', keyboard: false});
|
||
|
$('#loadingLoginButton').hide();
|
||
|
|
||
|
|
||
|
|
||
|
$('#loginButton').click(function(){
|
||
|
$('#loginButton').hide();
|
||
|
$('#loadingLoginButton').show();
|
||
|
|
||
|
|
||
|
|
||
|
$interval(
|
||
|
function()
|
||
|
{
|
||
|
$('#loginButton').show();
|
||
|
$('#loadingLoginButton').hide();
|
||
|
}, 2000,1);
|
||
|
|
||
|
|
||
|
|
||
|
});
|
||
|
})
|