Missing $scope in content edit controller

This commit is contained in:
perploug
2013-08-20 16:07:46 +02:00
parent d09b1d9949
commit 121d5462e9
2 changed files with 2 additions and 3 deletions

View File

@@ -11,7 +11,6 @@ function LegacyController($scope, $routeParams, $element) {
$scope.legacyPath = decodeURIComponent($routeParams.url);
//$scope.$on('$routeChangeSuccess', function () {
// var asdf = $element;
//});

View File

@@ -78,7 +78,7 @@ function ContentEditController($scope, $routeParams, $location, contentResource,
allOrigProps: contentEditingHelper.getAllProps($scope.content),
rebindCallback: contentEditingHelper.reBindChangedProperties(allOrigProps, allNewProps)
});
});
});
};
$scope.save = function () {
@@ -97,7 +97,7 @@ function ContentEditController($scope, $routeParams, $location, contentResource,
contentEditingHelper.handleSuccessfulSave({
scope: $scope,
newContent: data,
rebindCallback: contentEditingHelper.reBindChangedProperties(scope.content, data)
rebindCallback: contentEditingHelper.reBindChangedProperties($scope.content, data)
});
}, function (err) {