From 74c27be983ba78d02b949137cd1a44f89053dff3 Mon Sep 17 00:00:00 2001 From: kyebyungha Date: Tue, 10 May 2022 23:51:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=86=8C=20=EB=B3=B5=EC=82=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/ftl/m/bf_board/view_bf_detail_board.ftl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 5ba7212..7762312 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 @@ -396,7 +396,6 @@ var shareUrlFB = "https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(pageUrl)+"&t="+encodeURI(pageTitle); $(".facebook").on("click" , function(e) { - debugger; FB.ui({ method : 'share_open_graph', action_type: 'og.shares', @@ -422,14 +421,15 @@ $(".copy").on("click" , function(e) { debugger; - e.preventDefault(); + e.preventDefault(); + $("#copy").val(window.location.href); var target = $("#copy"); - target.val($(".cont_txt").text()); + // target.val($(".cont_txt").text()); var urlbox = document.getElementById( 'copy' ); urlbox.select(); document.execCommand('copy'); $("#shared").removeClass("open"); - Swal.fire({text:"게시글이 복사 되었습니다."}); + Swal.fire({text:"주소가 복사 되었습니다."}); }); @@ -717,17 +717,21 @@ $("#edit_copy").on("click", function(e) { e.preventDefault(); + debugger; + $("#copy").val(window.location.href); 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:"댓글이 복사 되었습니다."}); + Swal.fire({text:"주소가 복사 되었습니다."}); $("#option2").removeClass("open"); });