summary refs log tree commit diff
path: root/www/photo.causal.agency/trips.html
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-09-23 17:44:15 -0400
committerJune McEnroe <june@causal.agency>2024-09-23 17:44:15 -0400
commit9a38d0932d64b4a2ed5a6a2499490094d3bf8e7e (patch)
treeb4b36eb0a73abb69d85820c2eb47b34c6f8f520d /www/photo.causal.agency/trips.html
parentAdd photos from September 5 (diff)
downloadsrc-9a38d0932d64b4a2ed5a6a2499490094d3bf8e7e.tar.gz
src-9a38d0932d64b4a2ed5a6a2499490094d3bf8e7e.zip
Automatically select the last used lens for a body
Diffstat (limited to 'www/photo.causal.agency/trips.html')
-rw-r--r--www/photo.causal.agency/trips.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/photo.causal.agency/trips.html b/www/photo.causal.agency/trips.html
index ddad2adb..547f7ba2 100644
--- a/www/photo.causal.agency/trips.html
+++ b/www/photo.causal.agency/trips.html
@@ -241,6 +241,10 @@ function setTripBody() {
 		option.appendChild(document.createTextNode(lensString(lens)));
 		select.appendChild(option);
 	}
+	let lastTrip = trips.findLast(trip => trip.body == bodyName);
+	if (lastTrip) {
+		select.value = lastTrip.lens;
+	}
 	let roll = rolls[body.name];
 	if (roll) {
 		document.getElementById("trip-film").value = roll.film;