Latest tweaks

This commit is contained in:
Dobie Wollert
2015-08-10 01:42:48 -04:00
parent a8a63651ab
commit a228c2fde0
10 changed files with 37 additions and 35 deletions

View File

@ -75,7 +75,9 @@ function checkListsControllerFactory(isEdit) {
function save() {
if (isEdit) {
CheckLists.update({id: $scope.model._id}, $scope.model);
CheckLists.update({id: $scope.model._id}, $scope.model, function() {
$location.path("/checkLists/");
});
} else {
CheckLists.create($scope.model, function(result) {
$location.path("/checkLists/" + result._id);
@ -99,4 +101,4 @@ function checkListsControllerFactory(isEdit) {
$scope.model = CheckLists.get($routeParams);
}
}
}
}