OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/assets/javascripts/angular/controllers/timeline-selection-controll...

10 lines
363 B

angular.module('openproject.timelines.controllers')
.controller('TimelineSelectionController', ['$scope', '$window', function($scope, $window) {
$scope.timelines = gon.timelines;
$scope.currentTimelineId = gon.current_timeline_id;
$scope.switchTimeline = function() {
$window.location.href = $scope.timelines[$scope.currentTimelineId].path;
};
}]);