답글 복사 기능 수정

dev_bert
kyebyungha 3 years ago
parent fc736c79dd
commit b132bf91fe

@ -425,7 +425,6 @@
});
$(".copy").on("click" , function(e) {
debugger;
e.preventDefault();
$("#copy").val(window.location.href);
var target = $("#copy");
@ -722,21 +721,17 @@
$("#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");
});

Loading…
Cancel
Save