|
|
@@ -815,7 +815,7 @@
|
|
|
<th:block th:if="${goodsInfo.selfGoodsYn =='N' }"> <!-- 입점상품 -->
|
|
|
<div class="nomOption">
|
|
|
<div class="form_wrap">
|
|
|
- <div class="form_field">
|
|
|
+ <div class="form_field" th:id="${'form_field1_'+goodsInfo.goodsCd}">
|
|
|
<div class="select_custom item_opt1 item_opt1_1" th:classappend="${goodsInfo.goodsCd}" th:attr="id=${goodsInfo.goodsCd}">
|
|
|
<div class="combo">
|
|
|
<div class="select">선택</div>
|
|
|
@@ -833,7 +833,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form_field">
|
|
|
+ <div class="form_field" th:id="${'form_field2_'+goodsInfo.goodsCd}">
|
|
|
<div class="select_custom item_opt2 item_opt2_1" th:classappend="${goodsInfo.goodsCd}" disabled th:attr="qty=${goodsInfo.minOrdQty}">
|
|
|
<div class="combo">
|
|
|
<div class="select">선택</div>
|
|
|
@@ -851,7 +851,7 @@
|
|
|
<th:block th:if="${goodsInfo.goodsType =='G056_S' }"> <!-- 세트상품 -->
|
|
|
<div class="setOption" th:if="${goodsComposeList != null and !goodsComposeList.empty}" >
|
|
|
<div class="form_wrap" th:each="goodsCompose, status : ${goodsComposeList}">
|
|
|
- <div class="form_field">
|
|
|
+ <div class="form_field" th:id="${'form_field1_'+goodsCompose.compsGoodsCd}">
|
|
|
<p class="title" th:text="${goodsCompose.compsGoodsFullNm}">슬림핏</p>
|
|
|
<div class="select_custom item_opt1" th:classappend="${'item_opt1_'+status.count +' '+goodsCompose.compsGoodsCd}" th:attr="id=${goodsCompose.compsGoodsCd}, qty=${goodsCompose.qty}"
|
|
|
th:if="${goodsCompose.goodsOption1List != null and !goodsCompose.goodsOption1List.empty}" >
|
|
|
@@ -870,7 +870,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form_field">
|
|
|
+ <div class="form_field" th:id="${'form_field2_'+goodsCompose.compsGoodsCd}">
|
|
|
<div class="select_custom item_opt2" th:classappend="${'item_opt2_'+status.count +' '+goodsCompose.compsGoodsCd}" disabled>
|
|
|
<div class="combo">
|
|
|
<div class="select">선택</div>
|
|
|
@@ -1261,8 +1261,9 @@
|
|
|
$.each(result.dataList, function(idx, item) {
|
|
|
if (idx == 0){
|
|
|
|
|
|
- $('.form_field .select_custom.item_opt1.' +item.goodsCd ).attr('disabled', false)
|
|
|
+ //$('.form_field .select_custom.item_opt1.' +item.goodsCd ).attr('disabled', false)
|
|
|
//------
|
|
|
+ tag += '<div class="select_custom item_opt1 item_opt1_'+ridx+ ' '+goodsCd+'">\n';
|
|
|
tag += '<div class="combo">\n';
|
|
|
tag += '<div class="select">선택</div>\n';
|
|
|
tag += '<ul class="list" style="display: none;">\n';
|
|
|
@@ -1282,6 +1283,7 @@
|
|
|
//------
|
|
|
tag += '</ul>\n';
|
|
|
tag += '</div>\n';
|
|
|
+ tag += '</div>\n';
|
|
|
//------
|
|
|
}
|
|
|
|
|
|
@@ -1300,8 +1302,11 @@
|
|
|
}else{
|
|
|
$obj = $('.pop_option_select .select_custom.item_opt1.item_opt1_1');
|
|
|
}
|
|
|
- $obj.html('');
|
|
|
- $obj.append(tag);
|
|
|
+ // $obj.html('');
|
|
|
+ // $obj.append(tag);
|
|
|
+ $obj.remove();
|
|
|
+ $('#form_field1_'+ goodsCd).append(tag);
|
|
|
+
|
|
|
if (selfGoodsYn == "Y"){
|
|
|
if (ridx == 1){
|
|
|
var opt_selecter01_1 = new sCombo('.pop_option_select .select_custom.item_opt1.item_opt1_1');
|
|
|
@@ -1385,9 +1390,11 @@
|
|
|
//$obj = $('#goodsOpt2'+item.goodsCd);
|
|
|
//$obj = $('.form_field .select_custom.item_opt2.item_opt2_1');
|
|
|
|
|
|
- $obj.html('');
|
|
|
- $('.form_field .select_custom.item_opt2.' +item.goodsCd ).attr('disabled', false)
|
|
|
+ // $obj.html('');
|
|
|
+ $obj.remove();
|
|
|
+ // $('.form_field .select_custom.item_opt2.' +item.goodsCd ).attr('disabled', false)
|
|
|
//------
|
|
|
+ tag += '<div class="select_custom item_opt2 item_opt2_'+ridx+ ' '+goodsCd+'">\n';
|
|
|
tag += '<div class="combo">\n';
|
|
|
tag += '<div class="select">선택</div>\n';
|
|
|
tag += '<ul class="list">\n';
|
|
|
@@ -1416,10 +1423,12 @@
|
|
|
//------
|
|
|
tag += '</ul>\n';
|
|
|
tag += '</div>\n';
|
|
|
+ tag += '</div>\n';
|
|
|
//------
|
|
|
}
|
|
|
|
|
|
- $obj.append(tag);
|
|
|
+ // $obj.append(tag);
|
|
|
+ $('#form_field2_'+ goodsCd).append(tag);
|
|
|
if (selfGoodsYn == "Y"){
|
|
|
if (ridx == 1){
|
|
|
var opt_selecter02_1 = new sCombo('.pop_option_select .select_custom.item_opt2.item_opt2_1');
|