simplify the inline js

This commit is contained in:
Arya Kiran 2023-09-20 13:53:38 +05:30
parent 5333bbd223
commit 4dcbb74f20
No known key found for this signature in database
GPG key ID: 842D12BDA50DF120

View file

@ -107,9 +107,9 @@
document.getElementById("translation-form").submit();
}
});
// This code makes the select language menu searchable if js is enabled
var options = { searchable: true };
NiceSelect.bind(document.getElementById("targetLanguage"), options);
var options = { searchable: true };
NiceSelect.bind(document.getElementById("sourceLanguage"), options);
</script>
</main>