Fixed bug #373: Now the navigation menu isnt broken on project profile save
parent
df334b5081
commit
266d89a567
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue