mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-04 22:08:12 +02:00
added the ability to press enter in the text field
to request status
This commit is contained in:
@ -218,6 +218,12 @@ document.getElementById("request-status").onclick = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
uuid.addEventListener("keyup", (e) => {
|
||||
if (e.key === "Enter") {
|
||||
document.getElementById("request-status").click();
|
||||
}
|
||||
});
|
||||
|
||||
if (window.location.hash) {
|
||||
uuid.value = window.location.hash.substring(1); // remove # from hash
|
||||
document.getElementById("request-status").click();
|
||||
|
Reference in New Issue
Block a user