Commit e667860
committed
Remove jQuery UI: replace datepicker with air-datepicker, drop tooltips
jQuery UI was vendored in two locations (~250KB of JS+CSS+images) but
only two of its widgets were actually used:
- .datepicker() in two report-param JSPs — replaced with air-datepicker v2
(already vendored at javascript/air-datepicker/, never wired up before).
Same jQuery-plugin call shape ($("#x").datepicker({...})). Cross-field
min/maxDate constraint is now wired via onSelect callbacks.
- .tooltip() — global init in transitime.js plus per-page wirings on
Select2 containers in 8 form-param JSPs. Dropped entirely; native
browser tooltips on the underlying <input>/<select> remain. The two
"tooltip-disable" workarounds in maps/map.jsp and synoptic/index.jsp
existed solely to suppress side effects of the global init and
disappear with it.
Also:
- $('#mapTitle').hide('fade', 1000) — a jQuery UI effect — replaced
with core jQuery $.fadeOut(1000).
- transitime.js now has a cache-buster query string, mirroring the
existing pattern for general.css.
- <br>-based HTML in date/time tooltip title attrs converted to
line-break entities so native browser tooltips render
multi-line content correctly.
Deleted:
- transitclockWebapp/src/main/webapp/jquery-ui/ (full vendored library
with 12 files including 10 PNG images, full CSS+JS, and a demo).
- transitclockWebapp/src/main/webapp/javascript/jquery-ui.{js,min.js}
(duplicate vendored copy in the javascript/ dir).1 parent fbbf862 commit e667860
42 files changed
Lines changed: 45 additions & 31997 deletions
File tree
- transitclockWebapp/src/main/webapp
- javascript
- jquery-ui
- external/jquery
- images
- maps
- reports/params
- synoptic
- template
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 2440 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 2 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
This file was deleted.
0 commit comments