Skip to content

Commit

Permalink
M freeboard 로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SangCheonP committed Dec 12, 2023
1 parent 78fd6e9 commit d07c058
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/views/editmyprofile.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<ul class="nav__menu">
<li><a href="/" style="margin-top: 10px; margin-left: 10px;" class="white_font"> 홈 </a></li>
<li><a href="storeList" style="margin-top: 15px; margin-left: 10px;" class="white_font"> 후기 목록 </a></li>
<li><a href="../freeboardpage" style="margin-top: 10px; margin-left: 10px;" class="white_font"> 자유게시판 </a></li>
<li><a href="../mypage" style="margin-top: 10px; margin-left: 10px;" class="white_font"> 마이페이지 </a></li>
<li><a href="/freeboard" style="margin-top: 10px; margin-left: 10px;" class="white_font"> 자유게시판 </a></li>
<li><a href="/mypage" style="margin-top: 10px; margin-left: 10px;" class="white_font"> 마이페이지 </a></li>
</ul>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/views/free_boardEdit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</div>
<div class="bt_wrap">
<a id="editbtn" class="on">수정</a>
<a href="free_boardList">취소</a>
<a href="freeboard">취소</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -112,7 +112,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down Expand Up @@ -163,7 +163,7 @@
if (response.data === true) {
console.log("글 수정 성공!");
// Redirect or perform other actions on success
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
alert('수정이 완료되었습니다.')
} else {
console.log('글 수정 실패!');
Expand Down
8 changes: 4 additions & 4 deletions src/main/webapp/WEB-INF/views/free_boardList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<p>알바 고민 상담을 해봐요 !</p>
</div>

<input class="button" visibility = "hidden;" style= "margin-right:40px;" type="button" id="Btn" value="글쓰기" onclick="location.href='free_boardWrite'">
<input class="button" visibility = "hidden;" style= "margin-right:40px;" type="button" id="Btn" value="글쓰기" onclick="location.href='freeboardwrite'">
</div>

<!-- <div class="button-wrapper">-->
Expand All @@ -75,7 +75,7 @@
<div class="board_list" id ="boardList" >
<div>
<div class="num"></div>
<div class="title"><a href="free_boardView"></a></div>
<div class="title"><a href="freeboardview"></a></div>
<div class="writer"></div>
<div class="date"></div>
</div>
Expand Down Expand Up @@ -145,7 +145,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down Expand Up @@ -200,7 +200,7 @@
itemContainer.innerHTML = `
<div class="num">${i + 1}</div>
<div class="title"><a href="free_boardView?idx=${item.id}">${item.title}</a></div>
<div class="title"><a href="freeboardview?idx=${item.id}">${item.title}</a></div>
<div class="writer">${item.user_nickname}</div>
<div class="date">${formattedDate}</div>
<div class="idx" style="display: none;">${item.id}</div>
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/views/free_boardView.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@


<div class="bt_wra">
<a href="free_boardList" class="on">목록</a>
<a href="freeboard" class="on">목록</a>
<a id="editLink" href="#" class="on">수정</a>
<!--button id="btn-delete" class ="btn btn-danger">삭제</button>-->
</div>
Expand Down Expand Up @@ -197,7 +197,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
function formatDateString(dateString) {
Expand Down Expand Up @@ -311,7 +311,7 @@
// 수정 페이지 idx,userNickname 연결
const editLink = document.getElementById('editLink');
editLink.href = `free_boardEdit?idx=${selectedItem.id}&userNickname=${selectedItem.user_nickname}`;
editLink.href = `freeboardedit?idx=${selectedItem.id}&userNickname=${selectedItem.user_nickname}`;
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/views/free_boardWrite.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@

<div id = 'btn' class="bt_wra">
<a href ="#" id="registrationBtn" class="on">등록</a>
<a href="free_boardList" class="on">취소</a>
<a href="freeboard" class="on">취소</a>
<!--button id="btn-delete" class ="btn btn-danger">삭제</button>-->
</div>
</form>
Expand Down Expand Up @@ -159,7 +159,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down Expand Up @@ -188,7 +188,7 @@
// 성공 시 리다이렉트하거나 기타 작업 수행 가능
// 성공 시 리다이렉트하거나 기타 작업 수행 가능
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
} else {
console.log('새글 등록 실패!');
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/join.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/login.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/main.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/myfreepost.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/mypage.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/mypost.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/storeList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/views/storeView.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
alert('로그인 후 이용가능합니다!')
}
else{
window.location.href = 'free_boardList';
window.location.href = 'freeboard';
}
}
Expand Down

0 comments on commit d07c058

Please sign in to comment.