File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
ssulocker/templates/locker Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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>` ;
You can’t perform that action at this time.
0 commit comments