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"); } }