|
|
@@ -178,10 +178,10 @@
|
|
|
<div>
|
|
|
<div class="uFile w500">
|
|
|
<input type="file" th:id="${'file' + num}" th:name="${'file' + num}" class="uFileInput w500" accept="image/*"/>
|
|
|
- <label th:for="${'file' + num}" class="uFileLabel">파일선택</label>
|
|
|
+ <label th:for="${'file' + num}" class="uFileLabel" th:id="${'file_' + num}">파일선택</label>
|
|
|
<input type="hidden" name="fileItemVal" th:id="${'fileItemVal' + num}" />
|
|
|
<input type="hidden" name="sysFileNms" th:id="${'sysFileNm' + num}" />
|
|
|
- <input type="text" th:name="${'linkUrl' + num}" class="w300 aR">
|
|
|
+ <input type="text" th:name="${'linkUrl' + num}" th:id="${'linkUrl' + num}" class="w300 aR">
|
|
|
</div>
|
|
|
<br />
|
|
|
<table>
|
|
|
@@ -1146,25 +1146,7 @@
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
- // 첨부파일 삭제
|
|
|
- var fnDeleteFile = function(obj, noticeSq, seq, sysFileNm) {
|
|
|
- mcxDialog.confirm('정말 삭제하시겠습니까?', {
|
|
|
- cancelBtnText: "취소",
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function(){
|
|
|
- var params = new Object();
|
|
|
- params.noticeSq = noticeSq;
|
|
|
- params.seq = seq;
|
|
|
- params.sysFileNm = sysFileNm;
|
|
|
-
|
|
|
- var jsonData = JSON.stringify(params);
|
|
|
- gagajf.ajaxJsonSubmit('/board/notice/file/delete', jsonData, function() {
|
|
|
- $(obj).parent().remove();
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
// 상품 구분 추가 버튼 추가 버튼 표시는 1~5까지 순서대로 표시
|
|
|
$('#btnAddGrid').on('click', function(){
|
|
|
@@ -2216,7 +2198,9 @@ $(document).ready(function() {
|
|
|
|
|
|
if(fileList.length > 0 && fileList[0].fileItemVal != null)
|
|
|
{
|
|
|
- for (var i = 0; i <fileList.length; i++) {
|
|
|
+ $("#planTemplateForm select[name=fileCnt]").val(fileList.length);
|
|
|
+
|
|
|
+ /* for (var i = 0; i <fileList.length; i++) {
|
|
|
var tag = '';
|
|
|
tag += '<span class="memAdd">';
|
|
|
tag += ' <a id="dnFile' + (i + 1) + '">' + fileList[i].fileItemVal + '</a>\n';
|
|
|
@@ -2224,7 +2208,19 @@ $(document).ready(function() {
|
|
|
tag += '</span>';
|
|
|
$('#registeredFile').prepend(tag);
|
|
|
|
|
|
- }
|
|
|
+ } */
|
|
|
+
|
|
|
+ for (var i = 0; i <fileList.length; i++) {
|
|
|
+ $("#planTemplateForm input[name=fileLinkUrl"+ (i+1) +"]").val(fileList[i].linkUrl);
|
|
|
+ $("#planTemplateForm label[id=file_"+ (i+1) +"]").html(fileList[i].fileItemVal);
|
|
|
+ $("#planTemplateForm input[id=fileItemVal"+ (i+1) +"]").val(fileList[i].fileItemVal);
|
|
|
+ if (fileList[i].linkOpenGb == "M") {
|
|
|
+ $('#planTemplateForm input:radio[name=fileLinkOpenGb'+(i+1)+']:radio[value="M"]').prop('checked', true);
|
|
|
+ }else if(fileList[i].linkOpenGb == "N"){
|
|
|
+ $('#planTemplateForm input:radio[name=fileLinkOpenGb'+(i+1)+']:radio[value="N"]').prop('checked', true);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|