Merge branch 'tolag'

This commit is contained in:
leejunho 2022-12-22 17:57:31 +09:00
commit e5b1d04cfd
3 changed files with 50 additions and 46 deletions

View File

@ -49,21 +49,22 @@
linkForm.action = "<c:url value='/web/kccadr/accdnt/arc/corReqList.do'/>"; linkForm.action = "<c:url value='/web/kccadr/accdnt/arc/corReqList.do'/>";
linkForm.submit(); linkForm.submit();
} }
$(document).on(function() {
$(".btn_all").click(function() { $(".btn_all").click(function() {
/* var btnIdx = $(".btn_all").index(this); */ /* var btnIdx = $(".btn_all").index(this); */
var text = $(this).parent().children(".change_text_wrap"); var text = $(this).parent().children(".change_text_wrap");
if (text.is(".close") == true) { if (text.is(".close") == true) {
text.removeClass("close"); text.removeClass("close");
$(this).addClass("close"); $(this).addClass("close");
$(this).text("닫기"); $(this).text("닫기");
$(this).attr("title", "내용 일부만 보이기"); $(this).attr("title", "내용 일부만 보이기");
} else { } else {
text.addClass("close"); text.addClass("close");
$(this).removeClass("close"); $(this).removeClass("close");
$(this).text("더보기"); $(this).text("더보기");
$(this).attr("title", "내용 전체보기"); $(this).attr("title", "내용 전체보기");
} }
});
}); });
//접수증 팝업 //접수증 팝업

View File

@ -61,21 +61,23 @@
linkForm.action = "<c:url value='/web/kccadr/accdnt/arc/corReqList.do'/>"; linkForm.action = "<c:url value='/web/kccadr/accdnt/arc/corReqList.do'/>";
linkForm.submit(); linkForm.submit();
} }
$(".btn_all").click(function() { $(document).on(function() {
/* var btnIdx = $(".btn_all").index(this); */ $(".btn_all").click(function() {
var text = $(this).parent().children(".change_text_wrap"); /* var btnIdx = $(".btn_all").index(this); */
if (text.is(".close") == true) { var text = $(this).parent("td").children(".change_text_wrap");
text.removeClass("close"); if (text.is(".close") == true) {
$(this).addClass("close"); text.removeClass("close");
$(this).text("닫기"); $(this).addClass("close");
$(this).attr("title", "내용 일부만 보이기"); $(this).text("닫기");
} else { $(this).attr("title", "내용 일부만 보이기");
text.addClass("close"); } else {
$(this).removeClass("close"); text.addClass("close");
$(this).text("더보기"); $(this).removeClass("close");
$(this).attr("title", "내용 전체보기"); $(this).text("더보기");
} $(this).attr("title", "내용 전체보기");
}
});
}); });
//접수증 팝업 //접수증 팝업

View File

@ -81,22 +81,7 @@
linkForm.action = "<c:url value='/web/kccadr/accdnt/arc/corReqList.do'/>"; linkForm.action = "<c:url value='/web/kccadr/accdnt/arc/corReqList.do'/>";
linkForm.submit(); linkForm.submit();
} }
$(".btn_all").click(function() {
/* var btnIdx = $(".btn_all").index(this); */
var text = $(this).parent().children(".change_text_wrap");
if (text.is(".close") == true) {
text.removeClass("close");
$(this).addClass("close");
$(this).text("닫기");
$(this).attr("title", "내용 일부만 보이기");
} else {
text.addClass("close");
$(this).removeClass("close");
$(this).text("더보기");
$(this).attr("title", "내용 전체보기");
}
});
/* /*
$('.step').click(function(){ $('.step').click(function(){
@ -131,6 +116,22 @@
$("#stepBtn"+activeStep).show(); $("#stepBtn"+activeStep).show();
} }
$(".btn_all").click(function() {
/* var btnIdx = $(".btn_all").index(this); */
var text = $(this).parent().children(".change_text_wrap");
if (text.is(".close") == true) {
text.removeClass("close");
$(this).addClass("close");
$(this).text("닫기");
$(this).attr("title", "내용 일부만 보이기");
} else {
text.addClass("close");
$(this).removeClass("close");
$(this).text("더보기");
$(this).attr("title", "내용 전체보기");
}
});
}); });