|
|
@ -59,12 +59,12 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
|
|
|
|
var popupHeight = 750;
|
|
|
|
var popupHeight = 750;
|
|
|
|
var popupX = (window.screen.width / 2) - (popupWidth / 2);
|
|
|
|
var popupX = (window.screen.width / 2) - (popupWidth / 2);
|
|
|
|
var popupY= (window.screen.height / 2) - (popupHeight / 2);
|
|
|
|
var popupY= (window.screen.height / 2) - (popupHeight / 2);
|
|
|
|
|
|
|
|
|
|
|
|
var popup = window.open(wctx.url("/sprt/sprt03/020/main.do?openerPageName="+pageName+"&"+"fileId="+fileId)
|
|
|
|
var popup = window.open(wctx.url("/sprt/sprt03/020/main.do?openerPageName="+pageName+"&"+"fileId="+fileId)
|
|
|
|
,"editPhoto"
|
|
|
|
,"editPhoto"
|
|
|
|
,"width="+popupWidth+", height="+popupHeight+", left="+popupX+", top="+popupY
|
|
|
|
,"width="+popupWidth+", height="+popupHeight+", left="+popupX+", top="+popupY
|
|
|
|
);
|
|
|
|
);
|
|
|
|
$.blockUI({message : ""});
|
|
|
|
$.blockUI({message : ""});
|
|
|
|
popup.onload = () => {
|
|
|
|
popup.onload = () => {
|
|
|
|
popup.addEventListener('beforeunload', function() {
|
|
|
|
popup.addEventListener('beforeunload', function() {
|
|
|
|
$.unblockUI();
|
|
|
|
$.unblockUI();
|
|
|
@ -122,7 +122,9 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
|
|
|
|
|
|
|
|
|
|
|
|
// pageName에 따라 template이 다르다.
|
|
|
|
// pageName에 따라 template이 다르다.
|
|
|
|
var template;
|
|
|
|
var template;
|
|
|
|
if (pageName == "sprt02020") {
|
|
|
|
if (pageName == "rent02020") {
|
|
|
|
|
|
|
|
template = $P.findn("imgRadioTemplateRentInfo").innerHTML;
|
|
|
|
|
|
|
|
} else if (pageName == "sprt02020") {
|
|
|
|
template = $P.findn("imgRadioTemplateTotalInfo").innerHTML;
|
|
|
|
template = $P.findn("imgRadioTemplateTotalInfo").innerHTML;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
template = $P.findn("imgRadioTemplate").innerHTML;
|
|
|
|
template = $P.findn("imgRadioTemplate").innerHTML;
|
|
|
@ -245,8 +247,6 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if(flag == "delete"){
|
|
|
|
} else if(flag == "delete"){
|
|
|
|
fileProcessingURL = wctx.url("crdn/crdn06/deleteCrdnImageFile.do");
|
|
|
|
fileProcessingURL = wctx.url("crdn/crdn06/deleteCrdnImageFile.do");
|
|
|
|
|
|
|
|
|
|
|
@ -264,7 +264,6 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
|
|
|
|
for(var i=0; i < inputs.length; i++){
|
|
|
|
for(var i=0; i < inputs.length; i++){
|
|
|
|
formData.append("orderedKeys", inputs[i].value);
|
|
|
|
formData.append("orderedKeys", inputs[i].value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
@ -291,9 +290,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function initPhotoMain(pageName, fileList, existVideo){
|
|
|
|
function initPhotoMain(pageName, fileList, existVideo){
|
|
|
@ -307,6 +304,11 @@ function initPhotoMain(pageName, fileList, existVideo){
|
|
|
|
$P.$findn("btnOpenVideoCapture").hide();
|
|
|
|
$P.$findn("btnOpenVideoCapture").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 렌트업무에서는 버튼을 숨긴다.
|
|
|
|
|
|
|
|
if (pageName == "rent02020") {
|
|
|
|
|
|
|
|
$P.$findn("divBtn").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.existFileArr = [];
|
|
|
|
$P.existFileArr = [];
|
|
|
|
if(fileList){
|
|
|
|
if(fileList){
|
|
|
|
fileList.forEach(function(item){
|
|
|
|
fileList.forEach(function(item){
|
|
|
@ -318,6 +320,6 @@ function initPhotoMain(pageName, fileList, existVideo){
|
|
|
|
$P.localUploadArr = [];
|
|
|
|
$P.localUploadArr = [];
|
|
|
|
$P.findn("inputUploadSet").value = "";
|
|
|
|
$P.findn("inputUploadSet").value = "";
|
|
|
|
$P.$findn("inputUploadSet").trigger("change");
|
|
|
|
$P.$findn("inputUploadSet").trigger("change");
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay();
|
|
|
|
$P.fnDisplay();
|
|
|
|
}
|
|
|
|
}
|