diff options
| author | June McEnroe <june@causal.agency> | 2026-02-16 13:04:52 -0500 |
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2026-02-16 13:04:52 -0500 |
| commit | 1f825dcbddfead6546f057f5154aaec173a45f52 (patch) | |
| tree | c352f4afa76e42f874dfe8b0756c60040aa5f3a8 /www/photo.causal.agency | |
| parent | Don't break on trip with removed body (diff) | |
| download | src-1f825dcbddfead6546f057f5154aaec173a45f52.tar.gz src-1f825dcbddfead6546f057f5154aaec173a45f52.zip | |
Select last used body
Diffstat (limited to 'www/photo.causal.agency')
| -rw-r--r-- | www/photo.causal.agency/trips.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/photo.causal.agency/trips.html b/www/photo.causal.agency/trips.html index 8eace5e5..08f96e04 100644 --- a/www/photo.causal.agency/trips.html +++ b/www/photo.causal.agency/trips.html @@ -158,6 +158,9 @@ function setBodies() { select.appendChild(option); } } + if (trips.length) { + selects.forEach(select => select.value = trips[trips.length-1].body); + } } setBodies(); |