From 9f910239a6a8d7a44277beb2248d3469a78ce0bf Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 22 Aug 2023 08:48:23 +0900 Subject: [PATCH] no message --- .../WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp index d0b40b6d..5927dae1 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp @@ -212,22 +212,23 @@ $(document).ready(function(){ }; $P.crdnControl.onCurrentChange = (item) => { + if(!$P.crdnControl.tableRenderComplete){ + return; + } + - if($P.crdnControl.tableRenderComplete){ - $P.crdnControl.tableRenderComplete = false; - if(!item){ - $P.clickCrdnList("", true); - } else { - $P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true); - } - $("label[for='table-responsive--${pageName}']").trigger("refreshEnd"); + $P.crdnControl.tableRenderComplete = false; + if(!item){ + $P.clickCrdnList("", true); + } else { + $P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true); } } $P.crdnControl.onRemove = (selected, resp) => { if (resp.saved){ $P.toast.show(); - $P.crdnControl._load(); + $P.refreshCrdnList(); } } @@ -291,6 +292,10 @@ $(document).ready(function(){ $P.clickCrdnList = (dataKey, auto) => { if(dataKey == ""){ $("#bottomCrdnPlc--${pageName}").val(""); + + if(auto){ + $("label[for='table-responsive--${pageName}']").trigger("refreshEnd"); + } return; } @@ -310,6 +315,8 @@ $(document).ready(function(){ if(!auto){ $P.crdnControl.setCurrent(dataKey); + } else { + $("label[for='table-responsive--${pageName}']").trigger("refreshEnd"); } }