From f846fa62722566a00436c0ebfc394e9ddf1c0cb6 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 금, 24 12월 2021 11:09:07 +0900
Subject: [PATCH] - 통합 검색 완료

---
 src/main/webapp/scripts/config.js |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/scripts/config.js b/src/main/webapp/scripts/config.js
index 8c0a0f1..7804678 100644
--- a/src/main/webapp/scripts/config.js
+++ b/src/main/webapp/scripts/config.js
@@ -119,6 +119,8 @@
                     file : 314572800    //  100MB
                 };
 
+                $rootScope.isMainSearch = false;   // �넻�빀 寃��깋 �뿬遺�
+
                 //  �뀒�씠釉� �꽕�젙 諛� 湲곕뒫�쓣 愿�由ы븯�뒗 �꽌鍮꾩뒪
                 $rootScope.$tableProvider = $tableProvider;
 
@@ -258,6 +260,24 @@
                     "USER_PERMISSION_MNG_GUIDE" : 2,
                 };
 
+                // 荑좏궎 ���옣
+                $rootScope.setCookie = function (name, value, exp) {
+                    var date = new Date();
+                    date.setTime(date.getTime() + exp*24*60*60*1000);
+                    document.cookie = name + '=' + value + ';expires=' + date.toUTCString() + ';path=/';
+                };
+
+                // 荑좏궎 媛��졇�삤湲�
+                $rootScope.getCookie = function (name) {
+                    var value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
+                    return value? value[2] : null;
+                }
+
+                // 荑좏궎 �궘�젣
+                $rootScope.deleteCookie = function (name) {
+                    document.cookie = name + '=; expires=Thu, 01 Jan 1999 00:00:10 GMT;';
+                }
+
                 // �쁽�옱 �꽑�깮�맂 �씠�뒋 ���엯 �븘�씠�뵒 媛��졇�삤湲�
                 $rootScope.getCurrentIssueTypeId = function () {
                     return $rootScope.issueTypeMenu != null ? $rootScope.issueTypeMenu.id : null;

--
Gitblit v1.8.0