예약문자관리 예약취소시 로딩바 표시 추가

This commit is contained in:
rosewiper 2024-02-02 16:20:13 +09:00
parent dc0df86495
commit 5bcfe5a970

View File

@ -145,7 +145,7 @@ function linkPage(pageNo){
form.pageIndex.value = pageNo;
var sendData = $(document.searchForm).serializeArray();
$(".resvMsgAllLoad").html('<div class="list_info"><table class="tType4"><tbody><tr><td colspan="12">LOADING...1</td></tr></tbody></table></div>');
$(".resvMsgAllLoad").html('<div class="list_info"><table class="tType4"><tbody><tr><td colspan="12">LOADING...</td></tr></tbody></table></div>');
$(".resvMsgAllLoad").load("/web/mjon/reservmsg/selectReservMsgListViewAjax.do", sendData ,function(response, status, xhr){
});
@ -303,7 +303,7 @@ function fnReservCancel(msgGroupId, agentCode, msgType){
url: url,
data: data,
dataType:'json',
async: false,
async: true,
processData: false,
contentType: false,
cache: false,
@ -328,7 +328,17 @@ function fnReservCancel(msgGroupId, agentCode, msgType){
alert(returnData.message);
}
},
error: function (e) { alert("예약 취소에 실패하였습니다."); console.log("ERROR : ", e); }
error: function (e) {
alert("예약 취소에 실패하였습니다."); console.log("ERROR : ", e);
},
beforeSend : function(xmlHttpRequest) {
//로딩창 show
$('.loading_layer').addClass('active');
},
complete : function(xhr, textStatus) {
//로딩창 hide
$('.loading_layer').removeClass('active');
}
});
}
@ -385,6 +395,14 @@ function infoPop(pageUrl){
document.popForm.submit();
}
</script>
<div class="loading_layer">
<div class="loading_container">
<div class="bar"></div>
<div class="text">Loading</div>
</div>
</div>
<!-- 문자내용 팝업 data-tooltip: rev_popup01 -->
<div class="tooltip-wrap">
<div class="popup-com adr_layer rev_popup01" tabindex="0" data-tooltip-con="rev_popup01" data-focus="rev_popup01" data-focus-prev="rev_popup01-close" style="width: 440px;">