summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2026-02-16 13:04:52 -0500
committerJune McEnroe <june@causal.agency>2026-02-16 13:04:52 -0500
commit1f825dcbddfead6546f057f5154aaec173a45f52 (patch)
treec352f4afa76e42f874dfe8b0756c60040aa5f3a8 /www
parentDon't break on trip with removed body (diff)
downloadsrc-1f825dcbddfead6546f057f5154aaec173a45f52.tar.gz
src-1f825dcbddfead6546f057f5154aaec173a45f52.zip
Select last used body
Diffstat (limited to 'www')
-rw-r--r--www/photo.causal.agency/trips.html3
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();