summary refs log tree commit diff
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
parentDon't break on trip with removed body (diff)
downloadsrc-1f825dcbddfead6546f057f5154aaec173a45f52.tar.gz
src-1f825dcbddfead6546f057f5154aaec173a45f52.zip
Select last used body
-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();
 
cument SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe