diff --git a/app/assets/javascripts/angular/directives/timelines/timeline-toolbar-directive.js b/app/assets/javascripts/angular/directives/timelines/timeline-toolbar-directive.js index b7b00287c7..f92d4973b5 100644 --- a/app/assets/javascripts/angular/directives/timelines/timeline-toolbar-directive.js +++ b/app/assets/javascripts/angular/directives/timelines/timeline-toolbar-directive.js @@ -53,6 +53,9 @@ angular.module('openproject.timelines.directives') scope.currentScaleIndex--; } }; + scope.resetOutline = function(){ + scope.timeline.expandTo(0); + } scope.$watch('currentScaleName', function(newScaleName, oldScaleName){ if (newScaleName !== oldScaleName) { diff --git a/public/templates/timelines/toolbar.html b/public/templates/timelines/toolbar.html index 6982732f20..737a4fa99f 100644 --- a/public/templates/timelines/toolbar.html +++ b/public/templates/timelines/toolbar.html @@ -31,7 +31,7 @@