Handler Enter key

This commit is contained in:
Mehdi ABAAKOUK 2011-12-16 12:59:00 +01:00
parent 4c4e324768
commit f6738ea4dc
1 changed files with 8 additions and 0 deletions

View File

@ -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">