`reports/scheduleHorizStopsReport.jsp` appends each schedule's title and table directly to `$('body')` and reuses fixed ids (`#scheduleTitle`, `#dataTable`) for every iteration. After the layout migration, appending to `body` escapes the main pane and produces layout drift, and duplicate ids are invalid HTML when more than one schedule renders.
Fix:
-
Add a `<div id="scheduleContent">` to the page body, append into that container instead of `body`.
-
Replace the fixed ids with classes (or per-schedule ids derived from `schedule.directionId` + `schedule.serviceName`).
-
File: `transitclockWebapp/src/main/webapp/reports/scheduleHorizStopsReport.jsp`
-
Lines: 46–52, 107–108
Source
`reports/scheduleHorizStopsReport.jsp` appends each schedule's title and table directly to `$('body')` and reuses fixed ids (`#scheduleTitle`, `#dataTable`) for every iteration. After the layout migration, appending to `body` escapes the main pane and produces layout drift, and duplicate ids are invalid HTML when more than one schedule renders.
Fix:
Add a `<div id="scheduleContent">` to the page body, append into that container instead of `body`.
Replace the fixed ids with classes (or per-schedule ids derived from `schedule.directionId` + `schedule.serviceName`).
File: `transitclockWebapp/src/main/webapp/reports/scheduleHorizStopsReport.jsp`
Lines: 46–52, 107–108
Source