From 402ae1d68bf5108c496a1a2766437c31c6ce0b91 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 15 Oct 2024 14:29:05 +0900 Subject: [PATCH] =?UTF-8?q?dataset.onAppend=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp | 11 +++++++---- .../WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp index e42fb06..6c3c73d 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp @@ -408,10 +408,13 @@ } }); } - - - $P.productList.onAppend = item => { - + + + $P.productList.onAppend = (item) => { + if($P.productList._items != null && $P.productList._items.length > 0){ + $P.productList._items.forEach((it)=>{it.state = "";}); + } + if (!item) return; if (item.length < 1) return; diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp index 7a2ded9..31f2c81 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp @@ -377,10 +377,13 @@ } }); } - - - $P.productList.onAppend = item => { - + + + $P.productList.onAppend = (item) => { + if($P.productList._items != null && $P.productList._items.length > 0){ + $P.productList._items.forEach((it)=>{it.state = "";}); + } + if (!item) return; if (item.length < 1) return;