..
This commit is contained in:
@@ -298,11 +298,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 공통 네비게이션 JS -->
|
||||
<script src="/js/common-navigation.js"></script>
|
||||
|
||||
<script>
|
||||
// 공용코드 전용 스크립트
|
||||
// 공통 네비게이션 컴포넌트
|
||||
class CommonNavigation {
|
||||
constructor(currentPage = '') {
|
||||
this.currentPage = currentPage;
|
||||
this.menuItems = [];
|
||||
this.init();
|
||||
}
|
||||
|
||||
@@ -448,7 +449,7 @@
|
||||
// 코드그룹 목록 로드
|
||||
function loadGroups() {
|
||||
showLoading();
|
||||
|
||||
|
||||
fetch('/Common/GetGroups')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
@@ -517,7 +518,7 @@
|
||||
// 특정 그룹의 데이터 로드
|
||||
function loadDataByGroup(grp) {
|
||||
showLoading();
|
||||
|
||||
|
||||
let url = '/Common/GetList';
|
||||
if (grp) {
|
||||
url += '?grp=' + encodeURIComponent(grp);
|
||||
@@ -642,9 +643,9 @@
|
||||
// 삭제 실행
|
||||
function confirmDelete() {
|
||||
if (!deleteTargetIdx) return;
|
||||
|
||||
|
||||
showLoading();
|
||||
|
||||
|
||||
fetch('/Common/Delete', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
@@ -704,9 +705,9 @@
|
||||
svalue2: document.getElementById('editSvalue2').value,
|
||||
memo: document.getElementById('editMemo').value
|
||||
};
|
||||
|
||||
|
||||
showLoading();
|
||||
|
||||
|
||||
fetch('/Common/Save', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user