Add login controller, loading after click on login button and some stuff...

This commit is contained in:
manzerbredes 2016-02-03 16:59:04 +01:00
parent eb9f9c9a6e
commit 07fbfa6ad1
6 changed files with 39 additions and 8 deletions

View file

@ -0,0 +1,32 @@
/*
* 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);
});
})