Handler Enter key
This commit is contained in:
parent
4c4e324768
commit
f6738ea4dc
@ -39,6 +39,14 @@
|
|||||||
$("#host option[value='{{host}}']").attr("selected", "selected")
|
$("#host option[value='{{host}}']").attr("selected", "selected")
|
||||||
$("#host").change()
|
$("#host").change()
|
||||||
|
|
||||||
|
keypress_handler = function(e) {
|
||||||
|
if (e.which == 13) {
|
||||||
|
$("#submit").click()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$("#prefix").keypress(keypress_handler)
|
||||||
|
$("#name").keypress(keypress_handler)
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div id="page">
|
<div id="page">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user