|
|
@@ -98,11 +98,16 @@
|
|
|
html += '<input name="dispOrd" type="text" class="w80"placeholder="전시순서" style="margin-left:5px; text-align:center"/>';
|
|
|
html += '</td>';
|
|
|
html += '<td class="aL"><button type="button" class="btn btn-base btn-lg" onclick="fnAddTitlePopRow(this);">타이틀추가</button>';
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SBM004' || contentsLoc=='SBMM004'){
|
|
|
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>';
|
|
|
+ }
|
|
|
+ if(contentsLoc!='SBM005' && contentsLoc!='SBMM005'){
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
|
+ }
|
|
|
html += '<button type="button" class="btn btn-danger btn-lg" onclick="fnDeleteContentsRow(this);">삭제</button></td>';
|
|
|
html += '</tr></thead><tbody>';
|
|
|
for(var j=1; j<5; j++){
|
|
|
@@ -162,11 +167,16 @@
|
|
|
html += '<input name="dispOrd" type="text" class="w80"placeholder="전시순서" style="margin-left:5px; text-align:center"/>';
|
|
|
html += '</td>';
|
|
|
html += '<td class="aL"><button type="button" class="btn btn-base btn-lg" onclick="fnAddTitlePopRow(this);">타이틀추가</button>';
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
|
- if(contentsLoc=='SMM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SBM004' || contentsLoc=='SBMM004'){
|
|
|
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>';
|
|
|
+ }
|
|
|
+ if(contentsLoc!='SBM005' && contentsLoc!='SBMM005') {
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
|
+ }
|
|
|
html += '<button type="button" class="btn btn-danger btn-lg" onclick="fnDeleteContentsRow(this);">삭제</button></td>';
|
|
|
html += '</tr></thead><tbody></tbody></table>';
|
|
|
$("#popSortable").prepend(html);
|
|
|
@@ -189,7 +199,7 @@
|
|
|
}
|
|
|
|
|
|
if(contentsLoc=='SMM002'||contentsLoc=='SMM003'||contentsLoc=='SMM004'||contentsLoc=='SMM006'||contentsLoc=='SMM007'
|
|
|
- ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'){
|
|
|
+ ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'||contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
if(!gagajf.checkRequired("#contentsTitleForm")){
|
|
|
return;
|
|
|
}
|
|
|
@@ -332,7 +342,7 @@
|
|
|
}
|
|
|
|
|
|
if(contentsLoc=='SMM002'||contentsLoc=='SMM003'||contentsLoc=='SMM004'||contentsLoc=='SMM006'||contentsLoc=='SMM007'
|
|
|
- ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'){
|
|
|
+ ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'||contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
var data = {
|
|
|
cateNo : cateNo
|
|
|
, contentsLoc : contentsLoc
|
|
|
@@ -414,6 +424,27 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 브랜드 소개추가
|
|
|
+ */
|
|
|
+ var fnAddBrandDescRow = function (param){
|
|
|
+ var val = typeof param=='object'?'':param;
|
|
|
+ var html = '<tr name="subTextPopRow">'
|
|
|
+ html += '<th>브랜드소개</th>';
|
|
|
+ html += '<td><input type="text" name="subText" maxlength="200" value="'+val+'"/></td>';
|
|
|
+ html += '<td class="aL"><button type="button" class="btn icn" onclick="fnDeleteTrRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button></td>';
|
|
|
+ html += '</tr>';
|
|
|
+ if(typeof param == 'object'){
|
|
|
+ if($(param).closest("table").find("tbody").find("tr[name=subTextPopRow]").length>0){
|
|
|
+ mcxDialog.alert("브랜드소개는 1개까지 등록 가능합니다");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $(param).closest("table").find("tbody").append(html);
|
|
|
+ }else{
|
|
|
+ return html;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 이미지 추가
|
|
|
*/
|
|
|
@@ -525,7 +556,7 @@
|
|
|
$("#popTitle").text("["+contentsLoc+"] "+gagaAgGrid.lookupValue(contentsLocArr, contentsLoc));
|
|
|
|
|
|
if(contentsLoc=='SMM002'||contentsLoc=='SMM003'||contentsLoc=='SMM004'||contentsLoc=='SMM006'||contentsLoc=='SMM007'
|
|
|
- ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'){
|
|
|
+ ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'||contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
$("#contentsTitleForm").show();
|
|
|
}else{
|
|
|
$("#contentsTitleForm").hide();
|