diff options
author | June McEnroe <june@causal.agency> | 2024-09-23 17:44:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2024-09-23 17:44:15 -0400 |
commit | 9a38d0932d64b4a2ed5a6a2499490094d3bf8e7e (patch) | |
tree | b4b36eb0a73abb69d85820c2eb47b34c6f8f520d /www | |
parent | Add photos from September 5 (diff) | |
download | src-9a38d0932d64b4a2ed5a6a2499490094d3bf8e7e.tar.gz src-9a38d0932d64b4a2ed5a6a2499490094d3bf8e7e.zip |
Automatically select the last used lens for a body
Diffstat (limited to '')
-rw-r--r-- | www/photo.causal.agency/trips.html | 4 |
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; |