Skip to content

Commit dfca7a0

Browse files
committed
Merge branch 'btnIssue' of https://github.com/amuguna1mandeum/lockerweb into btnIssue
2 parents 8e45bca + 1ccb0f3 commit dfca7a0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ssulocker/templates/locker/lockerlist.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ <h1>IT대학 사물함 예약 웹사이트 3.0</h1>
200200
selection += `</optgroup > `;
201201
} else if (_userdepartment == "AI융합학부") {
202202
selection += `< optgroup label = "형남공학관" ><option disabled selected>층과 구역을 선택하세요.</option>`;
203-
selection += `
204-
<option value="HN0A">> 지하 1층</option>
205-
<option value="HN4A">> 4층</option>`;
203+
for (loc of lockerFiltered) {
204+
const _building = loc.slice(0, 2);
205+
let _floor = loc[2];
206+
let _floorShow = loc[2] == 0 ? "B1" : loc[2];
207+
const _sector = loc[3];
208+
selection += `<option value=${_building}${_floor}${_sector}>> ${_floorShow}${_sector}구역</option>`;
209+
}
206210
selection += `</optgroup >`;
207-
selection += `<optgroup label="문화관">`;
208-
selection += `<option value="CB1">> 1층</option>
209-
<option value="CB2">> 2층</option>
210-
<option value="CB3">> 3층</option>`;
211211
selection += `</optgroup>`;
212212
} else {
213213
selection += `< optgroup label = "정보과학관" ><option disabled selected>층과 구역을 선택하세요.</option>`;

0 commit comments

Comments
 (0)