Picture tools stay available on a filmed shot; a stale clip says so

This commit is contained in:
gator 2026-09-19 17:47:00 +00:00
parent 797fa52b87
commit a66c6b352e

View file

@ -1032,7 +1032,9 @@
// Why the last attempt at these pictures failed, in words - an author // Why the last attempt at these pictures failed, in words - an author
// looking at an unchanged frame otherwise concludes the button is broken. // looking at an unchanged frame otherwise concludes the button is broken.
var err = s.draw_error ? '<p class="cont" style="color:#b4531f">' + esc(s.draw_error) + '</p>' : ""; var err = s.draw_error ? '<p class="cont" style="color:#b4531f">' + esc(s.draw_error) + '</p>' : "";
if (!s.opening_url || s.clip_url) return err; // Available on a filmed shot too: a bad clip is very often a bad still,
// and that is exactly when the author needs to change the picture.
if (!s.opening_url) return err;
if (s.fixing || s.drawing) if (s.fixing || s.drawing)
return '<p class="busy">Redrawing this scene\u2019s pictures from your note\u2026</p>'; return '<p class="busy">Redrawing this scene\u2019s pictures from your note\u2026</p>';
return '<div class="ffault"><input type="text" id="ff-' + esc(s.id) + '" maxlength="400" ' return '<div class="ffault"><input type="text" id="ff-' + esc(s.id) + '" maxlength="400" '
@ -1150,6 +1152,7 @@
media = '<div class="frames"><figure><video src="' + esc(s.clip_url) + '" controls ' media = '<div class="frames"><figure><video src="' + esc(s.clip_url) + '" controls '
+ 'preload="metadata"></video><figcaption>the filmed shot' + 'preload="metadata"></video><figcaption>the filmed shot'
+ (s.clip_seconds ? ' &middot; ' + Number(s.clip_seconds).toFixed(1) + 's' : '') + (s.clip_seconds ? ' &middot; ' + Number(s.clip_seconds).toFixed(1) + 's' : '')
+ (s.clip_stale ? ' &middot; <b style="color:#b4531f">filmed from an older picture — film it again</b>' : '')
+ '</figcaption></figure>' + '</figcaption></figure>'
+ (s.opening_url ? '<figure><img data-zoom="' + esc("shot " + s.id + " — the frame it was filmed from") + (s.opening_url ? '<figure><img data-zoom="' + esc("shot " + s.id + " — the frame it was filmed from")
+ '" src="' + esc(s.opening_url) + '" alt=""><figcaption>filmed from this frame</figcaption></figure>' : '') + '" src="' + esc(s.opening_url) + '" alt=""><figcaption>filmed from this frame</figcaption></figure>' : '')