From 83e9396be243ed4515a43cceb4124afc9b463945 Mon Sep 17 00:00:00 2001 From: itn Date: Tue, 17 Oct 2023 14:39:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EC=9E=90=20=EC=9E=AC=EC=A0=84?= =?UTF-8?q?=EC=86=A1=EC=8B=9C=20location.reload=20=3D>=20location.href=20?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20=EC=9E=AC=EC=A0=84=EC=86=A1=20?= =?UTF-8?q?=EB=AC=B8=EC=9E=90=EA=B0=80=20=EB=B0=9C=EC=86=A1=ED=9B=84=20?= =?UTF-8?q?=EB=98=90=20=EB=82=98=EC=98=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/web/msgcampain/MsgDataView.jsp | 14 +++++++++++--- .../webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp | 13 ++++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/web/msgcampain/MsgDataView.jsp b/src/main/webapp/WEB-INF/jsp/web/msgcampain/MsgDataView.jsp index 574f19a5..e01d718e 100644 --- a/src/main/webapp/WEB-INF/jsp/web/msgcampain/MsgDataView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/msgcampain/MsgDataView.jsp @@ -197,6 +197,11 @@ function getMjMsgListByResend() { }); } +//문자발송 URL Move +function goMsgUrlMove() { + document.location.href = "/web/mjon/msgcampain/selectMsgDataView.do"; +} + function listMsgDataView(){ var sendData = $(document.searchForm).serializeArray() ; @@ -1459,7 +1464,8 @@ function fn_sendMsgData(){ }else if("statusFail" == returnData.result){ alert(returnData.message); - location.reload(); + //문자발송 URL Move + goMsgUrlMove(); return false; }else{ @@ -1708,7 +1714,8 @@ function sendMsgAjax(paramSmsCnt, paramBlockCnt){ }else if("statusFail" == returnData.result){ alert(returnData.message); - location.reload(); + //문자발송 URL Move + goMsgUrlMove(); return false; }else{ @@ -1880,7 +1887,8 @@ function fnMyMsgSearchListOrd(){ function msgSuccessClose(obj){ $(obj).closest('.pop_msg_success').attr('style',''); - location.reload(true); + //문자발송 URL Move + goMsgUrlMove(); $('html').scrollTop(0); } diff --git a/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp b/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp index c9864d74..f0d2ec9c 100644 --- a/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp @@ -228,6 +228,10 @@ function getMjMsgListByResend() { }); } +// 문자발송 URL Move +function goMsgUrlMove() { + document.location.href = "/web/mjon/msgdata/selectMsgDataView.do"; +} function listMsgDataView(){ @@ -1668,7 +1672,8 @@ function fn_sendMsgData(){ }else if("statusFail" == returnData.result){ alert(returnData.message); - location.reload(); + //문자발송 URL Move + goMsgUrlMove(); return false; }else{ @@ -1917,7 +1922,8 @@ function sendMsgAjax(paramSmsCnt, paramBlockCnt){ }else if("statusFail" == returnData.result){ alert(returnData.message); - location.reload(); + //문자발송 URL Move + goMsgUrlMove(); return false; }else{ @@ -2077,7 +2083,8 @@ function fnMyMsgSearchListOrd(){ function msgSuccessClose(obj){ $(obj).closest('.pop_msg_success').attr('style',''); - location.reload(true); + //문자발송 URL Move + goMsgUrlMove(); $('html').scrollTop(0); }