mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
1 parent
449ee8c708
commit
1c91ac470c
1 file changed
+1
-1
@@ -35,7 +35,7 @@ const page = new NamedPage('record_main', async () => {
|
||||
ProblemSelectAutoComplete.getOrConstruct($('[name="pid"]'), {
|
||||
clearDefaultValue: false,
|
||||
});
|
||||
const langs = UiContext.domain.langs?.split(',');
|
||||
const langs = UiContext.domain.langs?.split(',').map((i) => i.trim()).filter((i) => i);
|
||||
const availableLangs = getAvailableLangs(langs?.length ? langs : undefined);
|
||||
Object.keys(availableLangs).map(
|
||||
(i) => ($('select[name="lang"]').append(tpl`<option value="${i}" key="${i}">${availableLangs[i].display}</option>`)));
|
||||
|
||||
Reference in new issue
Block a user