|
|
@@ -103,7 +103,7 @@
|
|
|
if(contentsLoc!='SMM005' && contentsLoc!='SMM011' && contentsLoc!='SBM012'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddTitlePopRow(this);">타이틀추가</button>';
|
|
|
}
|
|
|
- if(contentsLoc=='SMM001' || contentsLoc=='SMM002' || contentsLoc=='SBM004' || contentsLoc=='SBMM004' || contentsLoc=='SCM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SMM002' || contentsLoc=='SBM004' || contentsLoc=='SBMM004' || contentsLoc=='SCM001' || contentsLoc=='SOM001'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>';
|
|
|
}
|
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
@@ -328,7 +328,7 @@
|
|
|
}
|
|
|
html += ' </tr>';
|
|
|
}
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
html += '<tr>';
|
|
|
html += ' <th>컨텐츠유형</th>';
|
|
|
html += ' <td class="planArea" name="planArea" id="planArea'+i+'" colspan="3">';
|
|
|
@@ -554,7 +554,7 @@
|
|
|
if(contentsLoc!='SMM005'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" id="addTitle'+dataIdx+'" onclick="fnAddTitlePopRow(this);">타이틀추가</button>';
|
|
|
}
|
|
|
- if(contentsLoc=='SMM001' || contentsLoc=='SMM002' || contentsLoc=='SBM004' || contentsLoc=='SBMM004' || contentsLoc=='SCM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SMM002' || contentsLoc=='SBM004' || contentsLoc=='SBMM004' || contentsLoc=='SCM001' || contentsLoc=='SOM001'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" id="addSubText'+dataIdx+'" onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>';
|
|
|
}
|
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
@@ -695,7 +695,7 @@
|
|
|
}
|
|
|
html += ' </tr>';
|
|
|
}
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
html += '<tr>';
|
|
|
html += ' <th>컨텐츠유형</th>';
|
|
|
html += ' <td class="planArea" name="planArea" id="planArea'+dataIdx+'" colspan="3">';
|
|
|
@@ -733,7 +733,7 @@
|
|
|
changeYear: true,
|
|
|
defaultDate: $('.schDate').val()
|
|
|
});
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
$("#addTitle"+dataIdx).click();
|
|
|
$("#addSubText"+dataIdx).click();
|
|
|
$("#addLink"+dataIdx).click();
|
|
|
@@ -790,6 +790,23 @@
|
|
|
$("#mcTable"+tableDataId).find("tr[name=titlePopRow]").find("input[name=title]").val(result[0].planNm);
|
|
|
$("#mcTable"+tableDataId).find("tr[name=subTextPopRow]").find("input[name=subText]").val(result[0].dtlTitle1);
|
|
|
$("#mcTable"+tableDataId).find("tr[name=linkPopRow]").find("input[name=link]").val('/planning/detail/form?planSq='+result[0].planSq);
|
|
|
+ let stdt = result[0].dispStdt.split(" ");
|
|
|
+ let eddt = result[0].dispEddt.split(" ");
|
|
|
+ let stdtTime;
|
|
|
+ let eddtTime;
|
|
|
+
|
|
|
+ $("#mcTable"+tableDataId).find("[name=dispStdt]").val(stdt[0]);
|
|
|
+ $("#mcTable"+tableDataId).find("[name=dispEddt]").val(eddt[0]);
|
|
|
+ if(!gagajf.isNull(stdt[1])){
|
|
|
+ stdtTime = stdt[1].split(":");
|
|
|
+ }
|
|
|
+ if(!gagajf.isNull(eddt[1])){
|
|
|
+ eddtTime = eddt[1].split(":");
|
|
|
+ }
|
|
|
+ $("#mcTable"+tableDataId).find("[name=stTimeHour]").val(stdtTime[0]+'시').prop("selected", true);
|
|
|
+ $("#mcTable"+tableDataId).find("[name=stTimeMin]").val(stdtTime[1]+'분').prop("selected", true);
|
|
|
+ $("#mcTable"+tableDataId).find("[name=edTimeHour]").val(eddtTime[0]+'시').prop("selected", true);
|
|
|
+ $("#mcTable"+tableDataId).find("[name=edTimeMin]").val(eddtTime[1]+'분').prop("selected", true);
|
|
|
}
|
|
|
|
|
|
// SMM001 데이터 validation 체크
|
|
|
@@ -827,7 +844,7 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
if(!smm001DataValidation()){
|
|
|
return false;
|
|
|
}
|
|
|
@@ -930,7 +947,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
strVar5 = $(this).find("input:radio[name=contentsType"+thisIdx+"]:checked").val();
|
|
|
strVar6 = $(this).find("input[name=planSq"+thisIdx+"]").val();
|