1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-25 16:24:43 +01:00

Handler Enter key

This commit is contained in:
Mehdi ABAAKOUK 2011-12-16 12:59:00 +01:00
parent 4c4e324768
commit f6738ea4dc

View file

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