From af608da379768bbfc8a794f52f19ff52465aa79c Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Thu, 18 Jun 2015 00:04:36 +0300 Subject: [PATCH] Home Animation Only Once fix --- templates/js/controllers/homeController.js | 3 +++ templates/js/controllers/mainController.js | 3 ++- templates/views/home.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/js/controllers/homeController.js b/templates/js/controllers/homeController.js index 98c95ca..009a4f5 100644 --- a/templates/js/controllers/homeController.js +++ b/templates/js/controllers/homeController.js @@ -65,4 +65,7 @@ angular.module('SeHub') + + // animation + $scope.isEnterd = top.setIsEnterd; }]); \ No newline at end of file diff --git a/templates/js/controllers/mainController.js b/templates/js/controllers/mainController.js index 08b10d6..1f175ab 100644 --- a/templates/js/controllers/mainController.js +++ b/templates/js/controllers/mainController.js @@ -2,7 +2,7 @@ angular.module('SeHub') .controller('mainController', ['$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']; $scope.loadingData = true; @@ -81,6 +81,7 @@ angular.module('SeHub') $scope.menuItems[i].style = ""; } }; + top.setIsEnterd = false; $location.path(route); } diff --git a/templates/views/home.html b/templates/views/home.html index a1b3d9b..7b2fc30 100644 --- a/templates/views/home.html +++ b/templates/views/home.html @@ -3,7 +3,7 @@ - +