From d55a8391601c9fa688cca4b3953c635e27e13394 Mon Sep 17 00:00:00 2001 From: isol2011 Date: Wed, 20 Jul 2022 17:31:37 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=88=98=EC=A0=95]=20=ED=83=80=EC=9D=B8=20?= =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EB=B3=B5=EC=82=AC=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ftl/m/bf_board/view_bf_detail_board.ftl | 62 +++++++++++++++---- 1 file changed, 51 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/ftl/m/bf_board/view_bf_detail_board.ftl b/src/main/webapp/WEB-INF/views/ftl/m/bf_board/view_bf_detail_board.ftl index bdcabb4..ffbce69 100644 --- a/src/main/webapp/WEB-INF/views/ftl/m/bf_board/view_bf_detail_board.ftl +++ b/src/main/webapp/WEB-INF/views/ftl/m/bf_board/view_bf_detail_board.ftl @@ -212,12 +212,17 @@ - <#if item['member_id']! == model['member_id']!> - -
-
-
- + <#if item['member_id']! == model['member_id']!> + +
+
+
+ <#else> + +
+
+
+
${item['mention']!}
${item['comment']!} @@ -313,11 +318,26 @@
- - - - - + + + +
+
+ + +
+ +
+ + +
@@ -698,6 +718,10 @@ $reply_new_yn ="N"; $("#option2").toggleClass("open"); }) + $(".option3_btn").on("click", function() { + $ct_no = this.dataset.ctno; + $("#option3").toggleClass("open"); + }); $(".shared_btn").on("click", function() { $("#shared").toggleClass("open"); /*if (navigator.share){ @@ -749,6 +773,22 @@ Swal.fire({text:"댓글 내용이 복사 되었습니다."}); $("#option2").removeClass("open"); }); + + $("#edit_copy_").on("click", function(e) { + e.preventDefault(); + var target = $("#copy"); + $(".comment_text").each( function(idx,ele) { + if(ele.dataset.ctno == $ct_no) { + target.val(ele.innerText); + return; + } + }); + var urlbox = document.getElementById( 'copy' ); + urlbox.select(); + document.execCommand('copy'); + Swal.fire({text:"댓글 내용이 복사 되었습니다."}); + $("#option3").removeClass("open"); + }); $("#edit_reply").on("click", function() { $("#option2").removeClass("open");