rename number to num in ftl

This commit is contained in:
Danny Coates 2017-12-05 19:07:23 -08:00
parent c517b074f1
commit 53d5b08559
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
24 changed files with 87 additions and 87 deletions

View file

@ -19,12 +19,12 @@ function expireInfo(file, translate, emit) {
const el = html([
`<div>${translate('expireInfo', {
downloadCount: '<select></select>',
timespan: translate('timespanHours', { number: 24 })
timespan: translate('timespanHours', { num: 24 })
})}</div>`
]);
const select = el.querySelector('select');
const options = [1, 2, 3, 4, 5, 20];
const t = number => translate('downloadCount', { number });
const t = num => translate('downloadCount', { num });
const changed = value => emit('changeLimit', { file, value });
select.parentNode.replaceChild(
selectbox(file.dlimit || 1, options, t, changed),