|
|
@@ -487,9 +487,11 @@
|
|
|
html += fnAddLinkPopRow(strVar);
|
|
|
}
|
|
|
if(contentsLoc=='SBM005'){
|
|
|
- if(subText!=null && subText!='null' && subText!='' ){
|
|
|
+ // if(subText!=null && subText!='null' && subText!='' ){
|
|
|
+ if(j==1){
|
|
|
html += fnAddBrandDescRow(subText);
|
|
|
}
|
|
|
+ // }
|
|
|
}else if(contentsLoc=='SMM001'){
|
|
|
if(subText!=null && subText!='null' && subText!='' ){
|
|
|
html += fnAddSubTextPopRow(subText);
|
|
|
@@ -937,7 +939,7 @@
|
|
|
changeYear: true,
|
|
|
defaultDate: $('.schDate').val()
|
|
|
});
|
|
|
- if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
|
+ if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001' || contentsLoc == 'SMM002'){
|
|
|
$("#addTitle"+dataIdx).click();
|
|
|
$("#addSubText"+dataIdx).click();
|
|
|
$("#addLink"+dataIdx).click();
|
|
|
@@ -946,8 +948,11 @@
|
|
|
$("#addMobImg"+dataIdx).click();
|
|
|
}
|
|
|
}
|
|
|
- if(contentsLoc=='SGNB002'){
|
|
|
+ if(contentsLoc=='SGNB002' || contentsLoc=='SMM008' || contentsLoc=='SBM006' || contentsLoc=='SCM005' || contentsLoc=='SOM005' || contentsLoc=='SAD001'){
|
|
|
$("#addTitle"+dataIdx).click();
|
|
|
+ if(contentsLoc=='SMM008'|| contentsLoc=='SBM006' || contentsLoc=='SCM005' || contentsLoc=='SOM005' || contentsLoc=='SAD001'){
|
|
|
+ $("#addImg"+dataIdx).click();
|
|
|
+ }
|
|
|
$("#addLink"+dataIdx).click();
|
|
|
}
|
|
|
|
|
|
@@ -1095,6 +1100,7 @@
|
|
|
// 전시 일시 체크
|
|
|
function dateValidation(){
|
|
|
var dateBool = true;
|
|
|
+ let dupCnt = 0;
|
|
|
$(".mcTable").each(function(i){
|
|
|
var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
var dispStdt = $(this).find("[name=dispStdt]").val().replace(/[^0-9]/g, '') + "" +$(this).find("[name=stTimeHour]").val().replace('시', '') + "" +$(this).find("[name=stTimeMin]").val().replace('분', '') + "00";
|
|
|
@@ -1106,6 +1112,7 @@
|
|
|
mcxDialog.alert((i+1) +"번째 " +"시작일자는 종료일자 보다 클 수 없습니다.");
|
|
|
$(this).find('input[name=dispStdt]').focus();
|
|
|
// dateBool = false;
|
|
|
+ dupCnt++;
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
@@ -1114,7 +1121,9 @@
|
|
|
// }else{
|
|
|
// return true;
|
|
|
// }
|
|
|
- return true;
|
|
|
+ if(dupCnt==0){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 동영상 확장자 체크
|
|
|
@@ -1589,6 +1598,9 @@
|
|
|
*/
|
|
|
var fnAddSubTextPopRow = function (param){
|
|
|
var val = typeof param=='object'?'':param;
|
|
|
+ if(gagajf.isNull(val)){
|
|
|
+ val = '';
|
|
|
+ }
|
|
|
var html = '<tr name="subTextPopRow">'
|
|
|
html += '<th>서브텍스트</th>';
|
|
|
html += '<td><input type="text" name="subText" maxlength="200" value="'+val+'"/></td>';
|
|
|
@@ -1853,7 +1865,11 @@
|
|
|
|
|
|
let fnBrandDesc = function (){
|
|
|
$(".mcTable").each(function (idx){
|
|
|
- cfnGetTextLength($(this).find('textarea[name=subText]'), 4000, $('#brandDescContent'+idx));
|
|
|
+ console.log('idx:'+idx);
|
|
|
+ if(!gagajf.isNull($(this).find('textarea[name=subText]').val())){
|
|
|
+ console.log('idx:>'+idx);
|
|
|
+ cfnGetTextLength($(this).find('textarea[name=subText]'), 4000, $('#brandDescContent'+idx));
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|