Fixed bug #373: Now the navigation menu isnt broken on project profile save

stable
Jesús Espino 2014-08-14 10:38:41 +02:00
parent df334b5081
commit 266d89a567
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ ProjectProfileDirective = ($rootscope, $log, $repo, $confirm, $location) ->
promise.then ->
$confirm.notify("success")
$location.path("/project/#{$scope.project.slug}/admin/project-profile/details")
$rootscope.$broadcast("project:loaded", $scope.project)
$scope.$emit("project:loaded", $scope.project)
promise.then null, (data) ->
form.setErrors(data)
@ -128,7 +128,7 @@ ProjectFeaturesDirective = ($rootscope, $log, $repo, $confirm) ->
promise = $repo.save($scope.project)
promise.then ->
$confirm.notify("success")
$rootscope.$broadcast("project:loaded", $scope.project)
$scope.$emit("project:loaded", $scope.project)
promise.then null, (data) ->
$confirm.notify("error", data._error_message)