| | |
| | | |
| | | // 메인 상단 검색 |
| | | function searchAll() { |
| | | $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000); |
| | | moveMenu("issues.list"); |
| | | if ($rootScope.isDefined($scope.vm.searchAll.keyWord)) { |
| | | $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000); |
| | | moveMenu("issues.list"); |
| | | } else { |
| | | SweetAlert.warning($filter("translate")("common.alertSystem"), $filter("translate")("issue.pleaseEnterIssueKeyWord")); |
| | | } |
| | | } |
| | | |
| | | function setLastIssueType() { |
| | |
| | | |
| | | function changeIssueListMenu(issueTypeId, changeProject = true) { |
| | | $rootScope.issueTypeMenu = null; |
| | | for (var issueType of $rootScope.workIssueTypes) { |
| | | if (issueType.id === issueTypeId) { |
| | | $rootScope.issueTypeMenu = issueType; |
| | | break; |
| | | $rootScope.allIssueList = false; |
| | | if (issueTypeId == null) { |
| | | $rootScope.allIssueList = true; |
| | | moveMenu("issues.list"); |
| | | }else { |
| | | for (var issueType of $rootScope.workIssueTypes) { |
| | | if (issueType.id === issueTypeId) { |
| | | $rootScope.issueTypeMenu = issueType; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |