Address Book module: Fix selection of card

This commit is contained in:
Francis Lachapelle 2014-11-14 15:20:18 -05:00
parent 78a349fecd
commit ec56079635

View file

@ -296,7 +296,7 @@
* Controller to view and edit a card * Controller to view and edit a card
*/ */
.controller('CardCtrl', ['$scope', '$rootScope', '$timeout', 'sgAddressBook', 'sgCard', 'sgDialog', 'sgFocus', '$state', '$stateParams', 'stateCard', function($scope, $rootScope, $timeout, AddressBook, Card, Dialog, focus, $state, $stateParams, stateCard) { .controller('CardCtrl', ['$scope', '$rootScope', '$timeout', 'sgAddressBook', 'sgCard', 'sgDialog', 'sgFocus', '$state', '$stateParams', 'stateCard', function($scope, $rootScope, $timeout, AddressBook, Card, Dialog, focus, $state, $stateParams, stateCard) {
$scope.card = stateCard; $rootScope.card = stateCard;
$scope.allEmailTypes = Card.$EMAIL_TYPES; $scope.allEmailTypes = Card.$EMAIL_TYPES;
$scope.allTelTypes = Card.$TEL_TYPES; $scope.allTelTypes = Card.$TEL_TYPES;