display glosses in index
This commit is contained in:
parent
24acee8378
commit
1d416be078
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ $( document ).ready(function() {
|
|||
if(glosses.length > 0) {
|
||||
entrystring = `${glosses.join('; ')}: `
|
||||
}
|
||||
opt = $(`<option value="${out.xmlid}">${entrystring}<i>${out.form}</i></option>`);
|
||||
opt = $(`<option value="${out.xmlid}">${entrystring}<i>${out.form}</i>
|
||||
${out.glosses.map(g => `‘${g}’`).join(', ')}</option>`);
|
||||
$select_entry.append(opt)
|
||||
})
|
||||
.catch(err => console.log(err));
|
||||
|
|
Loading…
Add table
Reference in a new issue