diff --git a/app/scripts/directives/nodeForm.js b/app/scripts/directives/nodeForm.js index db7db32..2ee6c41 100644 --- a/app/scripts/directives/nodeForm.js +++ b/app/scripts/directives/nodeForm.js @@ -2,7 +2,7 @@ angular.module('ffffng') .directive('fNodeForm', function () { - var ctrl = function ($scope, $timeout, Constraints, Validator, _, config) { + var ctrl = function ($scope, $timeout, Constraints, Validator, _, config, $window) { $scope.config = config; angular.extend($scope, { center: { @@ -107,6 +107,7 @@ angular.module('ffffng') default: $scope.error = 'Es ist ein Fehler aufgetreten. Versuche es später noch einmal.'; } + $window.scrollTo(0, 0); }); };