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 | 6 | .controller('RankingPageController', RankingPageController); |
7 | 7 | |
8 | 8 | /** @ngInject */ |
9 | - function RankingPageController(DialogaService, $scope, $location, $filter, $log) { | |
9 | + function RankingPageController(DialogaService, $scope, $rootScope, $location, $filter, $log) { | |
10 | 10 | var vm = this; |
11 | 11 | |
12 | 12 | vm.DialogaService = DialogaService; |
13 | 13 | vm.$scope = $scope; |
14 | + vm.$rootScope = $rootScope; | |
14 | 15 | vm.$location = $location; |
15 | 16 | vm.$filter = $filter; |
16 | 17 | vm.$log = $log; |
... | ... | @@ -18,6 +19,7 @@ |
18 | 19 | vm.init(); |
19 | 20 | vm.loadData(); |
20 | 21 | // vm.attachListeners(); // attach listeners after load data (SYNC) |
22 | + vm.$rootScope.focusMainContent(); | |
21 | 23 | |
22 | 24 | $log.debug('RankingPageController'); |
23 | 25 | } | ... | ... |