display glosses in index

This commit is contained in:
Oleg Belyaev 2025-03-21 19:57:16 +03:00
parent 24acee8378
commit 1d416be078

View file

@ -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));