diff --git a/VamPa/src/main/webapp/WEB-INF/views/goodsDetail.jsp b/VamPa/src/main/webapp/WEB-INF/views/goodsDetail.jsp index 8e14487..0c259d9 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/goodsDetail.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/goodsDetail.jsp @@ -425,6 +425,18 @@ const form = { }); } + /* 리뷰 수정 버튼 */ + $(document).on('click', '.update_reply_btn', function(e){ + + e.preventDefault(); + let replyId = $(this).attr("href"); + let popUrl = "/replyUpdate?replyId=" + replyId + "&bookId=" + '${goodsInfo.bookId}' + "&memberId=" + '${member.memberId}'; + let popOption = "width = 490px, height=490px, top=300px, left=300px, scrollbars=yes" + + window.open(popUrl,"리뷰 수정",popOption); + + }); + /* 댓글(리뷰) 동적 생성 메서드 */ function makeReplyContent(obj){ diff --git a/VamPa/src/main/webapp/WEB-INF/views/replyUpdate.jsp b/VamPa/src/main/webapp/WEB-INF/views/replyUpdate.jsp new file mode 100644 index 0000000..7a0df7f --- /dev/null +++ b/VamPa/src/main/webapp/WEB-INF/views/replyUpdate.jsp @@ -0,0 +1,201 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Insert title here + + + + + +
+
+ 리뷰 수정 +
+ +
+
+

${bookInfo.bookName}

+
+
+

평점

+ +
+
+

리뷰

+ +
+
+ +
+ 취소수정 +
+ +
+ + + + + \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/goodsDetail.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/goodsDetail.jsp index 8e14487..0c259d9 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/goodsDetail.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/goodsDetail.jsp @@ -425,6 +425,18 @@ const form = { }); } + /* 리뷰 수정 버튼 */ + $(document).on('click', '.update_reply_btn', function(e){ + + e.preventDefault(); + let replyId = $(this).attr("href"); + let popUrl = "/replyUpdate?replyId=" + replyId + "&bookId=" + '${goodsInfo.bookId}' + "&memberId=" + '${member.memberId}'; + let popOption = "width = 490px, height=490px, top=300px, left=300px, scrollbars=yes" + + window.open(popUrl,"리뷰 수정",popOption); + + }); + /* 댓글(리뷰) 동적 생성 메서드 */ function makeReplyContent(obj){ diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/replyUpdate.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/replyUpdate.jsp new file mode 100644 index 0000000..7a0df7f --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/replyUpdate.jsp @@ -0,0 +1,201 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Insert title here + + + + + +
+
+ 리뷰 수정 +
+ +
+
+

${bookInfo.bookName}

+
+
+

평점

+ +
+
+

리뷰

+ +
+
+ +
+ 취소수정 +
+ +
+ + + + + \ No newline at end of file