Commit be956383533e19547184e5de105a6a13e41703e9
1 parent
a48d487f
Exists in
master
and in
6 other branches
Add focus to main content
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/app/pages/ranking/ranking.controller.js
@@ -6,11 +6,12 @@ | @@ -6,11 +6,12 @@ | ||
6 | .controller('RankingPageController', RankingPageController); | 6 | .controller('RankingPageController', RankingPageController); |
7 | 7 | ||
8 | /** @ngInject */ | 8 | /** @ngInject */ |
9 | - function RankingPageController(DialogaService, $scope, $location, $filter, $log) { | 9 | + function RankingPageController(DialogaService, $scope, $rootScope, $location, $filter, $log) { |
10 | var vm = this; | 10 | var vm = this; |
11 | 11 | ||
12 | vm.DialogaService = DialogaService; | 12 | vm.DialogaService = DialogaService; |
13 | vm.$scope = $scope; | 13 | vm.$scope = $scope; |
14 | + vm.$rootScope = $rootScope; | ||
14 | vm.$location = $location; | 15 | vm.$location = $location; |
15 | vm.$filter = $filter; | 16 | vm.$filter = $filter; |
16 | vm.$log = $log; | 17 | vm.$log = $log; |
@@ -18,6 +19,7 @@ | @@ -18,6 +19,7 @@ | ||
18 | vm.init(); | 19 | vm.init(); |
19 | vm.loadData(); | 20 | vm.loadData(); |
20 | // vm.attachListeners(); // attach listeners after load data (SYNC) | 21 | // vm.attachListeners(); // attach listeners after load data (SYNC) |
22 | + vm.$rootScope.focusMainContent(); | ||
21 | 23 | ||
22 | $log.debug('RankingPageController'); | 24 | $log.debug('RankingPageController'); |
23 | } | 25 | } |