Commit 239472ef7052441859f5ad921749a0504f2992b1
1 parent
73f1f471
Exists in
master
and in
2 other branches
Saving token in scope and fixing bug on metatag
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
ConfJuvApp/www/index.html
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
5 | - <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width; height=device-height"> | 5 | + <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, height=device-height"> |
6 | 6 | ||
7 | <title>#3confjuv</title> | 7 | <title>#3confjuv</title> |
8 | 8 |
ConfJuvApp/www/js/controllers.js
@@ -21,9 +21,10 @@ angular.module('confjuvapp.controllers', []) | @@ -21,9 +21,10 @@ angular.module('confjuvapp.controllers', []) | ||
21 | // Function to open the modal | 21 | // Function to open the modal |
22 | $scope.openModal = function() { | 22 | $scope.openModal = function() { |
23 | if(ConfJuvAppUtils.getPrivateToken()){ | 23 | if(ConfJuvAppUtils.getPrivateToken()){ |
24 | + $scope.token = ConfJuvAppUtils.getPrivateToken(); | ||
24 | $scope.loggedIn = true; | 25 | $scope.loggedIn = true; |
25 | $scope.loadMe(); | 26 | $scope.loadMe(); |
26 | - $scope.loadTopics(ConfJuvAppUtils.getPrivateToken()); | 27 | + $scope.loadTopics($scope.token); |
27 | } else if ($scope.modal) { | 28 | } else if ($scope.modal) { |
28 | $scope.modal.show(); | 29 | $scope.modal.show(); |
29 | } else { | 30 | } else { |