|
|
@@ -111,7 +111,7 @@
|
|
|
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>';
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddBrandDescRow(this ,\'add\','+i+');">브랜드소개추가</button>';
|
|
|
}
|
|
|
if(contentsLoc!='SMM005' && contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002' && contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SMM003' && contentsLoc!='SMM004' && contentsLoc!='SMM006'
|
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019' && contentsLoc!='SOM003' && contentsLoc!='SOM004' && contentsLoc!='SCM004' && contentsLoc!='SBM004' && contentsLoc!='SCM001'){
|
|
|
@@ -695,7 +695,7 @@
|
|
|
html += ' onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>\n';
|
|
|
}
|
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" id="addBrandDesc'+dataIdx+'" onclick="fnAddBrandDescRow(this);">브랜드소개추가</button>\n';
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" id="addBrandDesc'+dataIdx+'" onclick="fnAddBrandDescRow(this,\'add\','+dataIdx+');">브랜드소개추가</button>\n';
|
|
|
}
|
|
|
if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002' && contentsLoc!='SMM005') {
|
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
|
@@ -973,10 +973,7 @@
|
|
|
|
|
|
var fnVideoFileUpload = function (obj, idx){
|
|
|
var file = obj.files[0];
|
|
|
- // 파일 용량 체크 10MB
|
|
|
- if(!gagajf.checkFileSize(file)){
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
gagaKollus.upload('Display', file, $(obj).find('input[name=kufKey]'));
|
|
|
}
|
|
|
|
|
|
@@ -1526,10 +1523,6 @@
|
|
|
var fnPopFileUpload = function (obj, ind){
|
|
|
var file = obj.files[0];
|
|
|
|
|
|
- // 파일 용량 체크 10MB
|
|
|
- if(!gagajf.checkFileSize(file)){
|
|
|
- return;
|
|
|
- }
|
|
|
file.name = 'test';
|
|
|
if (typeof(file) == 'undefined'){
|
|
|
return;
|
|
|
@@ -1553,11 +1546,6 @@
|
|
|
var fnGnbFileUpload = function (obj, ind, num){
|
|
|
var file = obj.files[0];
|
|
|
|
|
|
- // 파일 용량 체크 10MB
|
|
|
- if(!gagajf.checkFileSize(file)){
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
file.name = 'test';
|
|
|
if (typeof(file) == 'undefined'){
|
|
|
return;
|
|
|
@@ -1638,8 +1626,17 @@
|
|
|
* 브랜드 소개추가
|
|
|
*/
|
|
|
var brandDescIndex = 0;
|
|
|
- var fnAddBrandDescRow = function (param){
|
|
|
+ var fnAddBrandDescRow = function (param , gubun, idx){
|
|
|
+ if(gubun=='add'){
|
|
|
+ var thisIdx = $("#mcTable"+idx).find("input[name=tableIdx]").val();
|
|
|
+ brandDescIndex = thisIdx;
|
|
|
+ }
|
|
|
+
|
|
|
var val = typeof param=='object'?'':param;
|
|
|
+ if(!gagajf.isNull()){
|
|
|
+ val = val.replaceAll('<','<').replaceAll('>', '>').replaceAll('"', '"');
|
|
|
+ }
|
|
|
+
|
|
|
var html = '<tr name="subTextPopRow">'
|
|
|
html += '<th>브랜드소개';
|
|
|
html += '<br/>';
|
|
|
@@ -1751,18 +1748,18 @@
|
|
|
html += '<th>모바일용 이미지';
|
|
|
html += '</th>';
|
|
|
html += '<td><div class="uFile w300 mobImgFile">';
|
|
|
- html += '<input id="filePop_'+imgMobIndex+'" name="file" type="file" class="uFileInput w300" onchange="fnPopFileUpload(this, '+imgMobIndex+')"/>';
|
|
|
- html += '<label for="filePop_'+imgMobIndex+'" class="uFileLabel">파일선택</label>';
|
|
|
+ html += '<input id="filePop_100'+imgMobIndex+'" name="file" type="file" class="uFileInput w300" onchange="fnPopFileUpload(this, 100'+imgMobIndex+')"/>';
|
|
|
+ html += '<label for="filePop_100'+imgMobIndex+'" class="uFileLabel">파일선택</label>';
|
|
|
html += '<input type="hidden" name="imgPath" value="'+imgPath+'"/>';
|
|
|
html += '<input type="hidden" name="newImgFile" value="" />';
|
|
|
html += '</div>';
|
|
|
- html += '<div id="imgViewPop_'+imgMobIndex+'" class=';
|
|
|
+ html += '<div id="imgViewPop_100'+imgMobIndex+'" class=';
|
|
|
if(src!=''){
|
|
|
html += '"on">';
|
|
|
}else{
|
|
|
html += '"off">';
|
|
|
}
|
|
|
- html += '<img id="bannerPreViewUrlPop_'+imgMobIndex+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>';
|
|
|
+ html += '<img id="bannerPreViewUrlPop_100'+imgMobIndex+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>';
|
|
|
html += '</div></td>';
|
|
|
if(contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SCM001' && contentsLoc!='SBM004'){
|
|
|
html += '<td class="aL"><button type="button" class="btn icn" onclick="fnDeleteTrRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button></td>';
|
|
|
@@ -1863,10 +1860,7 @@
|
|
|
// 동영상파일 선택 시
|
|
|
$('#popSortable input[name=file]').on('change', function() {
|
|
|
var file = this.files[0];
|
|
|
- // 파일 용량 체크 10MB
|
|
|
- if(!gagajf.checkFileSize(file)){
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
gagaKollus.upload('Display', file, $('input[name=kufKey]'));
|
|
|
});
|
|
|
|
|
|
@@ -1878,6 +1872,10 @@
|
|
|
var fnResetDispOrd = function (){
|
|
|
$('.mcTable').each(function (idx){
|
|
|
$(this).find('input[name=dispOrd]').val(idx+1);
|
|
|
+ if(contentsLoc=='SBM005'){
|
|
|
+ var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
+ $(this).find('textarea[name=subText]').attr('id','brandDesc'+thisIdx);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|