|
|
@@ -357,7 +357,7 @@ console.log('brandGroupNo:'+brandGroupNo);
|
|
|
|
|
|
var fnReloadIdx = function (){
|
|
|
$(".tableTest").each(function(i){
|
|
|
- $(this).attr('id','tabTable'+i);
|
|
|
+ // $(this).attr('id','tabTable'+i);
|
|
|
$(this).find("input[name=dispOrd]").val(i+1);
|
|
|
//console.log($(this).attr('id'));
|
|
|
});
|
|
|
@@ -574,6 +574,27 @@ console.log('brandGroupNo:'+brandGroupNo);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 몰메인 신상품 : 상품데이터 체크
|
|
|
+ var goodsArrValidation = function (){
|
|
|
+ var dataBool = true;
|
|
|
+
|
|
|
+ $("#multiPopSortable .tableTest").each(function(i){
|
|
|
+ var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
+
|
|
|
+ if($("#tabTable"+thisIdx+" #goodsListTd"+thisIdx).find('ul').find('input[name=goodsCd]').length < 1){
|
|
|
+ mcxDialog.alert((i+1)+"번째 컨텐츠영역의 상품 정보가 없습니다.");
|
|
|
+ $(this).focus();
|
|
|
+ dataBool = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ if(!dataBool){
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 임시저장
|
|
|
*/
|
|
|
@@ -588,6 +609,12 @@ console.log('brandGroupNo:'+brandGroupNo);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ if(contentsLoc=='SMM003'){
|
|
|
+ if(!goodsArrValidation()){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
dataArr = [];
|
|
|
$("#multiPopSortable .tableTest").each(function(){ //$("#multiPopSortable table").each(function(){
|
|
|
var newImgFileArr = [];
|