A part of a chapter gets the full set of buttons
This commit is contained in:
parent
af96c095dd
commit
9d9d1e3fdc
1 changed files with 3 additions and 2 deletions
|
|
@ -521,7 +521,8 @@
|
|||
var imgs = boardImages(shots, cast);
|
||||
var s = String(meta.draw_state || "");
|
||||
var drawing = s && !/^(drawn|failed)/.test(s);
|
||||
var isLead = meta.writer === RUN.lead_writer;
|
||||
// A part of a chapter is always "the script" - there is nobody to choose between.
|
||||
var isLead = meta.writer === RUN.lead_writer || /^part-/.test(String(meta.writer));
|
||||
var out = [];
|
||||
|
||||
if (!isLead) out.push('<button type="button" class="btn primary" data-lead="'
|
||||
|
|
@ -1024,7 +1025,7 @@
|
|||
// anyone who wants it; nobody has to understand it to get a film made.
|
||||
function guideHtml(meta) {
|
||||
var shots = PKG.shots || [];
|
||||
if (!shots.length || meta.writer !== RUN.lead_writer) return "";
|
||||
if (!shots.length || (meta.writer !== RUN.lead_writer && !/^part-/.test(String(meta.writer)))) return "";
|
||||
var ds = String(meta.draw_state || "");
|
||||
var drawing = ds && !/^(drawn|failed)/.test(ds);
|
||||
var toDraw = Number(PKG.pictures_to_draw || 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue