Remove unused functions

pull/4038/head
Alex Dik 9 years ago
parent 4f9dfce935
commit d698f76c9a
  1. 9
      frontend/app/components/routing/controllers/work-packages-list.controller.js
  2. 10
      frontend/app/components/routing/controllers/work-packages.controller.js

@ -278,15 +278,6 @@ function WorkPackagesListController($scope, $rootScope, $state, $stateParams, $l
$scope.nextAvailableWorkPackage = nextAvailableWorkPackage;
$scope.openOverviewTab = function() {
var promise = $state.go('work-packages.list.details.overview', {
workPackageId: nextAvailableWorkPackage(),
'query_props': $location.search()['query_props']
});
loadingIndicator.on(promise);
};
$scope.showWorkPackageDetails = function(id, force) {
if (force || $state.current.url != "") {
var promise = $state.go(keepTab.currentDetailsTab, {

@ -30,8 +30,7 @@ angular
.module('openproject.workPackages.controllers')
.controller('WorkPackagesController', WorkPackagesController);
function WorkPackagesController($scope, $state, $stateParams, QueryService, $rootScope,
inplaceEditAll) {
function WorkPackagesController($scope, $state, $stateParams, QueryService, $rootScope) {
// Setup
$scope.$state = $state;
@ -47,16 +46,9 @@ function WorkPackagesController($scope, $state, $stateParams, QueryService, $roo
}
});
$scope.isDetailsViewActive = function() {
return $state.includes('work-packages.list.details') || inplaceEditAll.state;
};
$scope.getToggleActionLabel = function(active) {
return (active) ? I18n.t('js.label_deactivate') : I18n.t('js.label_activate');
};
$scope.getActivationActionLabel = function(activate) {
return (activate) ? I18n.t('js.label_activate') + ' ' : '';
};
$rootScope.$broadcast('openproject.layout.activateMenuItem');
}

Loading…
Cancel
Save