|
|
@@ -111,7 +111,7 @@
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>';
|
|
|
}
|
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddBrandDescRow(this);">브랜드소개추가</button>';
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddBrandDescRow(this ,\'add\','+i+');">브랜드소개추가</button>';
|
|
|
}
|
|
|
if(contentsLoc!='SMM005' && contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002' && contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SMM003' && contentsLoc!='SMM004' && contentsLoc!='SMM006'
|
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019' && contentsLoc!='SOM003' && contentsLoc!='SOM004' && contentsLoc!='SCM004' && contentsLoc!='SBM004' && contentsLoc!='SCM001'){
|
|
|
@@ -695,7 +695,7 @@
|
|
|
html += ' onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>\n';
|
|
|
}
|
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" id="addBrandDesc'+dataIdx+'" onclick="fnAddBrandDescRow(this);">브랜드소개추가</button>\n';
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" id="addBrandDesc'+dataIdx+'" onclick="fnAddBrandDescRow(this,\'add\','+dataIdx+');">브랜드소개추가</button>\n';
|
|
|
}
|
|
|
if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002' && contentsLoc!='SMM005') {
|
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
|
@@ -1507,7 +1507,7 @@
|
|
|
}
|
|
|
|
|
|
var jsonData = JSON.stringify(dataArr);
|
|
|
- // console.log('jsonData::'+jsonData);
|
|
|
+ console.log('jsonData::'+jsonData);
|
|
|
mcxDialog.confirm('컨텐츠를 저장 하시겠습니까?', {
|
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
|
@@ -1626,8 +1626,17 @@
|
|
|
* 브랜드 소개추가
|
|
|
*/
|
|
|
var brandDescIndex = 0;
|
|
|
- var fnAddBrandDescRow = function (param){
|
|
|
+ var fnAddBrandDescRow = function (param , gubun, idx){
|
|
|
+ if(gubun=='add'){
|
|
|
+ var thisIdx = $("#mcTable"+idx).find("input[name=tableIdx]").val();
|
|
|
+ brandDescIndex = thisIdx;
|
|
|
+ }
|
|
|
+
|
|
|
var val = typeof param=='object'?'':param;
|
|
|
+ if(!gagajf.isNull()){
|
|
|
+ val = val.replaceAll('<','<').replaceAll('>', '>').replaceAll('"', '"');
|
|
|
+ }
|
|
|
+
|
|
|
var html = '<tr name="subTextPopRow">'
|
|
|
html += '<th>브랜드소개';
|
|
|
html += '<br/>';
|
|
|
@@ -1863,6 +1872,10 @@
|
|
|
var fnResetDispOrd = function (){
|
|
|
$('.mcTable').each(function (idx){
|
|
|
$(this).find('input[name=dispOrd]').val(idx+1);
|
|
|
+ if(contentsLoc=='SBM005'){
|
|
|
+ var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
+ $(this).find('textarea[name=subText]').attr('id','brandDesc'+thisIdx);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|