mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Latest tweaks
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user