Compare commits

..

No commits in common. "18eed66a0e611d0b53dc05291fcded9779dbd5b1" and "4d55df53688c5cfd5d97489235c6f1ea05947ecd" have entirely different histories.

3 changed files with 5 additions and 8 deletions

View File

@ -83,11 +83,10 @@ $(document).on('click', '.uploadedFileDelete', function (){
}) })
$(document).on('click', '.fileDownLink', function (){ $(document).on('click', '.fileDownLink', function (){
const target = $(this)
let url = "/file/fileDownload?" let url = "/file/fileDownload?"
url += "board="+target.attr("data-board"); url += "board="+$(this).attr("data-board");
url += "&parentKey="+target.attr("data-parentkey"); url += "&parentKey="+Number($("#viewModalPlanKey").val());
url += "&fileSeq="+target.attr("data-fileseq"); url += "&fileSeq="+$(this).attr("data-fileseq");
window.open(encodeURI(url)); window.open(encodeURI(url));
}) })

View File

@ -79,8 +79,7 @@
<th:block th:unless="${#lists.isEmpty(plan.fileList)}"> <th:block th:unless="${#lists.isEmpty(plan.fileList)}">
<th:block th:each="file:${plan.fileList}"> <th:block th:each="file:${plan.fileList}">
<tr class="fileInfoTr"> <tr class="fileInfoTr">
<td><a href="#" class="fileDownLink" data-board="monthPlan" <td><a href="#" class="fileDownLink" data-board="monthPlan" th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn}|"></a></td>
th:data-parentkey="${file.planKey}" th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn}|"></a></td>
<td th:text="${file.fileSize}"></td> <td th:text="${file.fileSize}"></td>
</tr> </tr>
</th:block> </th:block>

View File

@ -56,8 +56,7 @@
<th:block th:unless="${#lists.isEmpty(info.fileList)}"> <th:block th:unless="${#lists.isEmpty(info.fileList)}">
<th:block th:each="file:${info.fileList}"> <th:block th:each="file:${info.fileList}">
<tr class="fileInfoTr"> <tr class="fileInfoTr">
<td><a href="#" class="fileDownLink" data-board="publicFile" <td><a href="#" class="fileDownLink" data-board="monthPlan" th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn}|"></a></td>
th:data-parentkey="${file.publicKey}" th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn}|"></a></td>
<td th:text="${file.fileSize}"></td> <td th:text="${file.fileSize}"></td>
</tr> </tr>
</th:block> </th:block>