| | |
| | | //} |
| | | }); |
| | | |
| | | $rootScope.$on("$stateChangeStart", function (event, toState, toStateParams) { |
| | | var keyWord = $rootScope.getCookie("searchKeyword"); |
| | | |
| | | if (keyWord == null || keyWord === '') { |
| | | $scope.vm.searchAll.keyWord = ""; |
| | | } |
| | | }); |
| | | |
| | | // 메인 상단 검색 |
| | | function searchAll() { |
| | | if ($state.current.name !== "issues.list") { |
| | | // $state.go("issues.list"); |
| | | var myUrl = window.location.href.split('#/'); |
| | | location.href = myUrl[0] + "#/issues/issueList?keyWord=" + $scope.vm.searchAll.keyWord; |
| | | if ($rootScope.isDefined($scope.vm.searchAll.keyWord)) { |
| | | $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000); |
| | | moveMenu("issues.list"); |
| | | } else { |
| | | $scope.$broadcast("searchIssueList", {keyWord: $scope.vm.searchAll.keyWord}); |
| | | SweetAlert.warning($filter("translate")("common.alertSystem"), $filter("translate")("issue.pleaseEnterIssueKeyWord")); |
| | | } |
| | | //$scope.vm.searchAll.keyWord = ""; |
| | | //$rootScope.previousGetParams = null; |
| | | } |
| | | |
| | | function setLastIssueType() { |