diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2017-04-24 17:01:32 -0700 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2017-04-24 17:01:32 -0700 |
| commit | 9140a674ac06c3d40e78557b69cba8e5d2b6c72a (patch) | |
| tree | ce14759e7b3f82ab6bb3a2c82b06617620fb1d8b /static/js | |
| parent | 01250f2a144846b493cf5cf8f5311b1bf3fe6c19 (diff) | |
| download | bmcweb-9140a674ac06c3d40e78557b69cba8e5d2b6c72a.tar.gz bmcweb-9140a674ac06c3d40e78557b69cba8e5d2b6c72a.zip | |
incremental
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/bmcApp.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/static/js/bmcApp.js b/static/js/bmcApp.js index 7d31cc2..2678ac0 100644 --- a/static/js/bmcApp.js +++ b/static/js/bmcApp.js @@ -10,6 +10,8 @@ var app = angular.module('bmcApp', [ 'ngResource' ]); + + app.controller('MainCtrl', ['$scope', function($scope) { }]); @@ -72,9 +74,14 @@ app.directive('windowSize', ['$window', function ($window) { app.run(['$rootScope', '$cookieStore', '$state', '$resource', 'AuthenticationService', '$http', '$templateCache', function($rootScope, $cookieStore, $state, $resource, AuthenticationService, $http, $templateCache) { + + $http.get('static/partial-login.html', {cache:$templateCache}); + $http.get('static/partial-kvm.html', {cache: $templateCache}); + if ($rootScope.globals == undefined){ $rootScope.globals = {}; } + // keep user logged in after page refresh AuthenticationService.RestoreCredientials(); @@ -90,8 +97,7 @@ app.run(['$rootScope', '$cookieStore', '$state', '$resource', 'AuthenticationSer $state.go('login'); } }); - - $http.get('static/partial-kvm.html', { cache: $templateCache }); + } ]); |

