file lost through rebasing

This commit is contained in:
Alexandre Cloutier
2014-10-01 14:27:58 -04:00
committed by Francis Lachapelle
parent edbd661104
commit 3bf1224c9b
8 changed files with 260 additions and 87 deletions
+13 -1
View File
@@ -173,7 +173,19 @@
$scope.share = function() {
var modal = $modal.open({
templateUrl: 'addressbookSharing.html',
controller: function($scope, $modalInstance) {
controller: function($scope, $http, $modalInstance, sgAclUsers) {
/* Variables for the scope */
$scope.AclUsers = new sgAclUsers($rootScope.addressbook);
$scope.userObjects = {};
$scope.AclUsers.getUsers().then(function(data) {
$scope.users = data;
});
var dirtyObjects = {};
/* Functions */
$scope.removeButton = function() {
return ($scope.userSelected && $scope.userSelected.userClass != "public-user") ? false : true;
};
$scope.closeModal = function() {
$modalInstance.close();
};