게시물 이력 조회 ajax 수정.
parent
5c236aea6c
commit
93da80a1ff
|
|
@ -77,20 +77,17 @@ function getBoardContent(contentSeq){
|
||||||
}
|
}
|
||||||
function getBoardLog(contentSeq){
|
function getBoardLog(contentSeq){
|
||||||
if(contentSeq !== undefined){
|
if(contentSeq !== undefined){
|
||||||
const viewContentSeq = $("#logViewContentSeq").val();
|
$.ajax({
|
||||||
if(contentSeq !== viewContentSeq){
|
url: '/board/selectBoardLog',
|
||||||
$.ajax({
|
data: {contentSeq: contentSeq},
|
||||||
url: '/board/selectBoardLog',
|
type: 'GET',
|
||||||
data: {contentSeq: contentSeq},
|
dataType:"html",
|
||||||
type: 'GET',
|
success: function(html){
|
||||||
dataType:"html",
|
$("#logDiv").empty().append(html)
|
||||||
success: function(html){
|
},
|
||||||
$("#logDiv").empty().append(html)
|
error:function(){
|
||||||
},
|
|
||||||
error:function(){
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||||
<div class="p-3">
|
<div class="p-3">
|
||||||
<input type="hidden" id="logViewContentSeq" th:value="${contentSeq}">
|
|
||||||
<div class="row-cols-6 overflow-auto">
|
<div class="row-cols-6 overflow-auto">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue