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");