Home Animation Only Once fix
This commit is contained in:
parent
83b252249d
commit
af608da379
3 changed files with 6 additions and 2 deletions
|
@ -65,4 +65,7 @@ angular.module('SeHub')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// animation
|
||||||
|
$scope.isEnterd = top.setIsEnterd;
|
||||||
}]);
|
}]);
|
|
@ -2,7 +2,7 @@ angular.module('SeHub')
|
||||||
.controller('mainController', ['$scope', '$rootScope', 'dataService','apiService', '$cookies', '$cookieStore', '$location', '$window',
|
.controller('mainController', ['$scope', '$rootScope', 'dataService','apiService', '$cookies', '$cookieStore', '$location', '$window',
|
||||||
|
|
||||||
function($scope, $rootScope, dataService, apiService, $cookies, $cookieStore, $location, $window) {
|
function($scope, $rootScope, dataService, apiService, $cookies, $cookieStore, $location, $window) {
|
||||||
|
top.setIsEnterd = true;
|
||||||
var token = $cookies['com.sehub.www'];
|
var token = $cookies['com.sehub.www'];
|
||||||
|
|
||||||
$scope.loadingData = true;
|
$scope.loadingData = true;
|
||||||
|
@ -81,6 +81,7 @@ angular.module('SeHub')
|
||||||
$scope.menuItems[i].style = "";
|
$scope.menuItems[i].style = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
top.setIsEnterd = false;
|
||||||
$location.path(route);
|
$location.path(route);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
||||||
</div>
|
</div>
|
||||||
<md-content layout-padding>
|
<md-content layout-padding>
|
||||||
<md-card class="gray-font fadeOutUp">
|
<md-card class="gray-font fadeOutUp" ng-if="isEnterd">
|
||||||
<div layout="row">
|
<div layout="row">
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue