2024/01/29 팝업 포커싱 오류 수정

This commit is contained in:
subsub 2024-01-29 10:09:46 +09:00
parent fe5735ccc2
commit 36ed3fec13
4 changed files with 44 additions and 12 deletions

View File

@ -220,11 +220,19 @@ $(document).ready(function(){
btnLast.attr('data-focus','sub36_pop02_close');
*/
// 레이어팝업 포커싱 이동 수정
$(".tooltip-close").click(function(){
/* $(".tooltip-close").click(function(){
var activeTarget = $('[data-tooltip-con="sub37_pop20"]');
activeTarget.hide();
//$('[data-tooltip="sub37_pop20"]:first-child').focus();
$('[data-info="${chasiInfo.eduChasiOrd}"]').focus();
}); */
$(".tooltip-close").click(function(e){
e.stopPropagation();
$(this).closest(".popup_wrap").hide();
$(".mask").hide();
$(".focusPopBtn").focus();
$(".focusPopBtn").removeClass("focusPopBtn");
});
})

View File

@ -220,6 +220,14 @@ $(document).ready(function(){
btnLast.attr('data-focus','sub36_pop02_close');
*/
$(".tooltip-close").click(function(e){
e.stopPropagation();
$(this).closest(".popup_wrap").hide();
$(".mask").hide();
$(".focusPopBtn").focus();
$(".focusPopBtn").removeClass("focusPopBtn");
});
})
function onclickPrint() {

View File

@ -220,10 +220,13 @@ $(document).ready(function(){
btnLast.attr('data-focus','sub36_pop02_close');
*/
// 레이어팝업 포커싱 이동 수정
$(".tooltip-close").click(function(){
var activeTarget = $('[data-tooltip-con="sub37_pop20"]');
activeTarget.hide();
$('[data-tooltip="sub37_pop20"]:last-child').focus();
$(".tooltip-close").click(function(e){
e.stopPropagation();
$(this).closest(".popup_wrap").hide();
$(".mask").hide();
$(".focusPopBtn").focus();
$(".focusPopBtn").removeClass("focusPopBtn");
});
})

View File

@ -46,6 +46,19 @@
$(document).ready(function () {
setNumberOnly();
// 팝업 오픈 버튼
$(".popupOpenBtn").click(function(){
$(this).addClass("focusPopBtn");
});
$(".tooltip-close").click(function(e){
e.stopPropagation();
$(this).closest(".popup_wrap").hide();
$(".mask").hide();
$(".focusPopBtn").focus();
$(".focusPopBtn").removeClass("focusPopBtn");
});
});
function setNumberOnly(){ //숫자만 입력
@ -1173,7 +1186,7 @@
-
</c:when>
<c:otherwise>
<button type="button" class="btnType04" data-tooltip="instrInfo_pop01"
<button type="button" class="btnType04 popupOpenBtn" data-tooltip="instrInfo_pop01" data-info="${list.userId}"
onclick="selectInstrInfo('${list.userId}')" title="팝업 열림">${cryptoUtil.decrypt(list.instrNm) }</button>
</c:otherwise>
</c:choose>
@ -1183,23 +1196,23 @@
<td><!-- 학생 -->
<c:choose>
<c:when test="${not empty list.qustnrRespondId10 and list.qestnrParticipantCnt gt 0 and list.qustnrQesitmId10Cnt gt 0}">
<button type="button" class="btnType02" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
<button type="button" class="btnType02 popupOpenBtn" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','select'
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
)" title="팝업 열림">설문완료</button>
</c:when>
<c:when test="${not empty list.qestnrId10}">
<button type="button" class="btnType01" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
<button type="button" class="btnType01 popupOpenBtn" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
)" title="팝업 열림">설문등록</button>
<button type="button" class="btnType04" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
<button type="button" class="btnType04 popupOpenBtn" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
onclick="fncQustnrPrintList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','print'
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
)" title="팝업 열림">설문출력</button>
<button type="button" class="btnType04" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
<button type="button" class="btnType04 popupOpenBtn" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
onclick="fncQustnrQRPrintList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','print'
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
)" title="팝업 열림">설문QR</button>
@ -1213,13 +1226,13 @@
<td><!-- 신청인 -->
<c:choose>
<c:when test="${not empty list.qustnrRespondId20 and list.qestnrParticipantCnt gt 0 and list.qustnrQesitmId20Cnt gt 0}">
<button type="button" class="btnType02" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
<button type="button" class="btnType02 popupOpenBtn" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','20','select'
,'${list.qustnrTmplatId}','${list.qestnrId20}','${list.qustnrRespondId20}'
)" title="팝업 열림">설문완료</button>
</c:when>
<c:when test="${not empty list.qestnrId20}">
<button type="button" class="btnType01" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
<button type="button" class="btnType01 popupOpenBtn" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','20','insert'
,'${list.qustnrTmplatId}','${list.qestnrId20}','${list.qustnrRespondId20}'
)" title="팝업 열림">설문등록</button>