mirror of
https://codeberg.org/aryak/mozhi
synced 2024-12-22 22:59:44 +05:30
simplify the inline js
This commit is contained in:
parent
5333bbd223
commit
4dcbb74f20
@ -107,9 +107,9 @@
|
|||||||
document.getElementById("translation-form").submit();
|
document.getElementById("translation-form").submit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// This code makes the select language menu searchable if js is enabled
|
||||||
var options = { searchable: true };
|
var options = { searchable: true };
|
||||||
NiceSelect.bind(document.getElementById("targetLanguage"), options);
|
NiceSelect.bind(document.getElementById("targetLanguage"), options);
|
||||||
var options = { searchable: true };
|
|
||||||
NiceSelect.bind(document.getElementById("sourceLanguage"), options);
|
NiceSelect.bind(document.getElementById("sourceLanguage"), options);
|
||||||
</script>
|
</script>
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user