(thisMod, sourceMod)
| 37 | |
| 38 | // MARK: page build |
| 39 | doLine(thisMod, sourceMod) { |
| 40 | if ( thisMod.version === sourceMod.version ) { |
| 41 | return DATA.templateEngine('version_same', { |
| 42 | collectName : thisMod.collectName, |
| 43 | shortName : thisMod.modRecord.fileDetail.shortName, |
| 44 | title : this.doL10N(thisMod.modRecord.l10n.title), |
| 45 | }) |
| 46 | } |
| 47 | const node = DATA.templateEngine('version_diff', { |
| 48 | collectName : thisMod.collectName, |
| 49 | shortName : thisMod.modRecord.fileDetail.shortName, |
| 50 | title : this.doL10N(thisMod.modRecord.l10n.title), |
| 51 | version : thisMod.version, |
| 52 | }) |
| 53 | |
| 54 | const fileCheck = node.querySelector('.fileOpCheck') |
| 55 | |
| 56 | fileCheck.value = thisMod.collectKey |
| 57 | fileCheck.addEventListener('change', () => { |
| 58 | MA.byId('copyButton').clsEnable(MA.queryA('.fileOpCheck:checked').length !== 0) |
| 59 | }) |
| 60 | return node |
| 61 | } |
| 62 | |
| 63 | // MARK: comparisons |
| 64 | getMostRecent(verList) { |
no test coverage detected