diff options
Diffstat (limited to 'www')
-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; |