|
|
@@ -1320,8 +1320,8 @@
|
|
|
return;
|
|
|
}
|
|
|
}else{
|
|
|
- if($(param).closest("table").find("tbody").find("tr[name=linkPopRow]").length>3){
|
|
|
- mcxDialog.alert("링크는 4개까지 등록 가능합니다");
|
|
|
+ if($(param).closest("table").find("tbody").find("tr[name=linkPopRow]").length>0){
|
|
|
+ mcxDialog.alert("링크는 1개까지 등록 가능합니다");
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -1345,8 +1345,8 @@
|
|
|
}
|
|
|
html += '</tr>';
|
|
|
if(typeof param == 'object'){
|
|
|
- if($(param).closest("table").find("tbody").find("tr[name=subTextPopRow]").length>3){
|
|
|
- mcxDialog.alert("서브텍스트는 4개까지 등록 가능합니다");
|
|
|
+ if($(param).closest("table").find("tbody").find("tr[name=subTextPopRow]").length>0){
|
|
|
+ mcxDialog.alert("서브텍스트는 1개까지 등록 가능합니다");
|
|
|
return;
|
|
|
}
|
|
|
$(param).closest("table").find("tbody").append(html);
|
|
|
@@ -1434,9 +1434,13 @@
|
|
|
return;
|
|
|
}
|
|
|
}else{
|
|
|
- if($(param).closest("table").find("tbody").find("tr[name=imgPopRow]").length>3){
|
|
|
- mcxDialog.alert("이미지는 4개까지 등록 가능합니다");
|
|
|
- return;
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SBM004'|| contentsLoc=='SOM001'){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ if($(param).closest("table").find("tbody").find("tr[name=imgPopRow]").length>0){
|
|
|
+ mcxDialog.alert("이미지는 1개까지 등록 가능합니다");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
imgIndex++;
|
|
|
@@ -1488,9 +1492,13 @@
|
|
|
return;
|
|
|
}
|
|
|
}else{
|
|
|
- if($(param).closest("table").find("tbody").find("tr[name=imgPopRow]").length>3){
|
|
|
- mcxDialog.alert("이미지는 4개까지 등록 가능합니다");
|
|
|
- return;
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SBM004'|| contentsLoc=='SOM001'){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ if($(param).closest("table").find("tbody").find("tr[name=imgPopRow]").length>0){
|
|
|
+ mcxDialog.alert("이미지는 1개까지 등록 가능합니다");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
imgMobIndex++;
|
|
|
@@ -1514,8 +1522,8 @@
|
|
|
}
|
|
|
html += '</tr>';
|
|
|
if(typeof param == 'object'){
|
|
|
- if($(param).closest("table").find("tbody").find("tr[name=titlePopRow]").length>3){
|
|
|
- mcxDialog.alert("타이틀은 4개까지 등록 가능합니다");
|
|
|
+ if($(param).closest("table").find("tbody").find("tr[name=titlePopRow]").length>0){
|
|
|
+ mcxDialog.alert("타이틀은 1개까지 등록 가능합니다");
|
|
|
return;
|
|
|
}
|
|
|
$(param).closest("table").find("tbody").append(html);
|