diff --git a/src/main/webapp/components/_partials/_modal_add_owner.html b/src/main/webapp/components/_partials/_modal_add_owner.html
index 257a4c560..46bc67e82 100644
--- a/src/main/webapp/components/_partials/_modal_add_owner.html
+++ b/src/main/webapp/components/_partials/_modal_add_owner.html
@@ -33,17 +33,17 @@
-
+
-
+
@@ -142,17 +142,17 @@
-
+
-
+
diff --git a/src/main/webapp/components/_partials/_modal_add_pet.html b/src/main/webapp/components/_partials/_modal_add_pet.html
index 697182feb..f34def502 100644
--- a/src/main/webapp/components/_partials/_modal_add_pet.html
+++ b/src/main/webapp/components/_partials/_modal_add_pet.html
@@ -33,7 +33,7 @@
-
+
diff --git a/src/main/webapp/components/pets/PetController.js b/src/main/webapp/components/pets/PetController.js
index 3f2eff547..768cb69be 100644
--- a/src/main/webapp/components/pets/PetController.js
+++ b/src/main/webapp/components/pets/PetController.js
@@ -22,6 +22,8 @@ var AddPetController = ['$scope','$rootScope','PetType','OwnerPet',function($sco
$scope.currentPet.type.name = $scope.petTypes[i].name;
}
}
- OwnerPet.save({ownerId:currentOwnerId},$scope.currentPet);
+ OwnerPet.save({ownerId:currentOwnerId},$scope.currentPet, function(pet) {
+ $scope.currentOwner.pets.push(pet);
+ });
};
}];
\ No newline at end of file