|
@@ -322,7 +322,6 @@
|
|
|
* 레이아웃 행추가 버튼
|
|
* 레이아웃 행추가 버튼
|
|
|
*/
|
|
*/
|
|
|
$("#btnAddRow").on("click", function (){
|
|
$("#btnAddRow").on("click", function (){
|
|
|
- console.log('[행추가 start]');
|
|
|
|
|
var val = $("#searchForm select[name=cate1No]").val();
|
|
var val = $("#searchForm select[name=cate1No]").val();
|
|
|
var cate1No = val.split(',')[0];
|
|
var cate1No = val.split(',')[0];
|
|
|
//console.log('val>>'+val);
|
|
//console.log('val>>'+val);
|
|
@@ -397,9 +396,9 @@
|
|
|
|
|
|
|
|
html += '" style="text-align:center; max-width:'+maxWidth+'px;">';
|
|
html += '" style="text-align:center; max-width:'+maxWidth+'px;">';
|
|
|
html += '<div>';
|
|
html += '<div>';
|
|
|
- html += '<select name="contentsLocEdit" required="required" style="max-width:80px;" data-valid-name="컨텐츠 위치">'+contentsLocHtml+'</select>';
|
|
|
|
|
|
|
+ html += '<select name="contentsLocEdit" required="required" style="max-width:300px;" data-valid-name="컨텐츠 위치">'+contentsLocHtml+'</select>';
|
|
|
html += '</div>';
|
|
html += '</div>';
|
|
|
- html += '<select name="contentsYn" required="required" style="max-width:80px;" data-valid-name="컨텐츠 타입"><option value="C">[C] 컨텐츠</option><option value="G">[G] 상품</option><option value="A">[A] 컨텐츠 + 상품</option></select>';
|
|
|
|
|
|
|
+ html += '<select name="contentsYn" required="required" style="max-width:160px;" data-valid-name="컨텐츠 타입"><option value="C">[C] 컨텐츠</option><option value="G">[G] 상품</option><option value="A">[A] 컨텐츠 + 상품</option></select>';
|
|
|
html += '<input type="hidden" name="contentsLoc" value=""/>';
|
|
html += '<input type="hidden" name="contentsLoc" value=""/>';
|
|
|
html += '<input type="hidden" name="colCnt" value="'+colCnt+'"/>';
|
|
html += '<input type="hidden" name="colCnt" value="'+colCnt+'"/>';
|
|
|
html += '<input type="hidden" name="colNo" value="'+colNo+'"/>';
|
|
html += '<input type="hidden" name="colNo" value="'+colNo+'"/>';
|
|
@@ -486,6 +485,7 @@
|
|
|
var dataArr = [];
|
|
var dataArr = [];
|
|
|
var contentLocArr = [];
|
|
var contentLocArr = [];
|
|
|
var contentLocCheck = true;
|
|
var contentLocCheck = true;
|
|
|
|
|
+
|
|
|
$("#mainSortable tbody").each(function(ind){
|
|
$("#mainSortable tbody").each(function(ind){
|
|
|
var orgFileNm = $(this).find('input:hidden[name="orgFileNm"]').val();
|
|
var orgFileNm = $(this).find('input:hidden[name="orgFileNm"]').val();
|
|
|
var sysFileNm = $(this).find('input:hidden[name="sysFileNm"]').val();
|
|
var sysFileNm = $(this).find('input:hidden[name="sysFileNm"]').val();
|
|
@@ -533,6 +533,7 @@
|
|
|
mcxDialog.alert('위치코드가 중복 되었습니다.');
|
|
mcxDialog.alert('위치코드가 중복 되었습니다.');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if(dataArr.length==0){
|
|
if(dataArr.length==0){
|
|
|
mcxDialog.alert("저장할 데이터가 없습니다.");
|
|
mcxDialog.alert("저장할 데이터가 없습니다.");
|
|
|
return;
|
|
return;
|