mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-22 06:54:43 +01:00
Handler Enter key
This commit is contained in:
parent
4c4e324768
commit
f6738ea4dc
|
@ -39,6 +39,14 @@
|
|||
$("#host option[value='{{host}}']").attr("selected", "selected")
|
||||
$("#host").change()
|
||||
|
||||
keypress_handler = function(e) {
|
||||
if (e.which == 13) {
|
||||
$("#submit").click()
|
||||
}
|
||||
};
|
||||
$("#prefix").keypress(keypress_handler)
|
||||
$("#name").keypress(keypress_handler)
|
||||
|
||||
});
|
||||
</script>
|
||||
<div id="page">
|
||||
|
|
Loading…
Reference in a new issue