mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
JS: Fix swap button on test-page (#388)
This commit is contained in:
parent
ed3160524d
commit
46882e7cfe
@ -111,7 +111,7 @@ langTo.addEventListener("change", e => {
|
|||||||
|
|
||||||
$(".swap").addEventListener("click", e => {
|
$(".swap").addEventListener("click", e => {
|
||||||
[langFrom.value, langTo.value] = [langTo.value, langFrom.value];
|
[langFrom.value, langTo.value] = [langTo.value, langFrom.value];
|
||||||
$("#input").value = $("#output").value;
|
$("#input").value = $("#output").innerText;
|
||||||
loadModel();
|
loadModel();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user