From 93da80a1ff18674991b4895929a0631b468f62af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Thu, 16 Dec 2021 17:48:09 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EC=9D=B4?= =?UTF-8?q?=EB=A0=A5=20=EC=A1=B0=ED=9A=8C=20ajax=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/js/board/contentList.js | 25 ++++++++----------- .../resources/templates/board/contentLog.html | 1 - 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/main/resources/static/js/board/contentList.js b/src/main/resources/static/js/board/contentList.js index 19d9921..1854ef5 100644 --- a/src/main/resources/static/js/board/contentList.js +++ b/src/main/resources/static/js/board/contentList.js @@ -77,20 +77,17 @@ function getBoardContent(contentSeq){ } function getBoardLog(contentSeq){ if(contentSeq !== undefined){ - const viewContentSeq = $("#logViewContentSeq").val(); - if(contentSeq !== viewContentSeq){ - $.ajax({ - url: '/board/selectBoardLog', - data: {contentSeq: contentSeq}, - type: 'GET', - dataType:"html", - success: function(html){ - $("#logDiv").empty().append(html) - }, - error:function(){ + $.ajax({ + url: '/board/selectBoardLog', + data: {contentSeq: contentSeq}, + type: 'GET', + dataType:"html", + success: function(html){ + $("#logDiv").empty().append(html) + }, + error:function(){ - } - }); - } + } + }); } } \ No newline at end of file diff --git a/src/main/resources/templates/board/contentLog.html b/src/main/resources/templates/board/contentLog.html index 7aab1f4..0b85b90 100644 --- a/src/main/resources/templates/board/contentLog.html +++ b/src/main/resources/templates/board/contentLog.html @@ -1,7 +1,6 @@
-