Missing $scope in content edit controller
This commit is contained in:
@@ -11,7 +11,6 @@ function LegacyController($scope, $routeParams, $element) {
|
||||
|
||||
$scope.legacyPath = decodeURIComponent($routeParams.url);
|
||||
|
||||
|
||||
//$scope.$on('$routeChangeSuccess', function () {
|
||||
// var asdf = $element;
|
||||
//});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user