MediaWiki:Common.js: Difference between revisions
OCR roster: treat MW API true as empty string; table when 24 people detected |
OCR review: no-team rows still show who/page/change |
||
| Line 1,695: | Line 1,695: | ||
(teamFact && teamFact.value ? (', then Team ' + teamLabel + ' can be added.') : '.') | (teamFact && teamFact.value ? (', then Team ' + teamLabel + ' can be added.') : '.') | ||
); | ); | ||
return; | |||
} | |||
if (!teamFact) { | |||
$include.prop('disabled', true).prop('checked', false); | |||
if (extra.length) { | |||
$outcome.addClass('ocr-outcome-write'); | |||
var $ul0 = $('<ul>', { 'class': 'ocr-row-write-list' }); | |||
extra.forEach(function (line) { | |||
$ul0.append($('<li>').text(line)); | |||
}); | |||
$outcome.empty().append($ul0); | |||
} else { | |||
$outcome.addClass('ocr-outcome-idle'); | |||
$outcome.text( | |||
'Matched. This scan has no team number to write. Rank/ASN/role stay as cues unless you open extra fields.' | |||
); | |||
} | |||
return; | return; | ||
} | } | ||