From 51a8e234d9429f3299f520239b8b001998fa8de9 Mon Sep 17 00:00:00 2001 From: jity7777 Date: Thu, 18 Jul 2024 03:31:28 +0000 Subject: [PATCH] =?UTF-8?q?=EB=88=84=EB=9D=BD=EB=B3=B8=20=EC=BB=A4?= =?UTF-8?q?=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FO/Views/My/LectureOn.cshtml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/FO/Views/My/LectureOn.cshtml b/FO/Views/My/LectureOn.cshtml index b0b3c7c..f062d93 100644 --- a/FO/Views/My/LectureOn.cshtml +++ b/FO/Views/My/LectureOn.cshtml @@ -83,7 +83,7 @@
@* *@ -
+
@@ -194,9 +194,11 @@ ulScd.empty(); //var seq = 0; let displayCnt = 0; - let noDisPlay = true; + let noDisPlay = true; + let datachk = false; $.each(capResult.obj, function (i, d) { + datachk = false; let comment = d.comment == null ? "" : "
(" + d.comment + ")" var li = $("
  • "); @@ -209,7 +211,7 @@ } if (cshape == 2 && d.studyplace != null && !onceCheck) { - li.append("


    "); + li.append("

    "); onceCheck = true; } @@ -235,18 +237,20 @@ ++displayCnt; if (d.quota != 0) { if (d.remainPeople <= 0) { - + datachk = true; pData.html(""); } else { if (d.isselected == 1) { //spanApplyClass.text("수강신청"); //aApplyClass.append(spanApplyClass); + datachk = true; pData.html(""); } else { //spanApplyClass.text("수강신청"); //aApplyClass.append(spanApplyClass); + datachk = true; pData.html(""); //pData.append(aApplyClass); } @@ -254,6 +258,7 @@ } else { if (d.isselected == 1) { + datachk = true; pData.html("" + comment +""); } //else { @@ -278,8 +283,10 @@ _cmno = 0; } - li.append(pData); - ulScd.append(li); + if (datachk || onceCheck) { + li.append(pData); + ulScd.append(li); + } }); @@ -296,7 +303,7 @@ $(".mpgPopCont").css("height", "300px") } else { - $(".mpgPopCont").css("height", "550px") + $(".mpgPopCont").css("height", "480px") } }