I entered in web2py_ajax.html the following code to submit the form by
pressing the Enter key:
$ (function () {
$ ("form"). bind ("keypress", function (event) {
if (event.keyCode == 13) {
$ ('form'). submit ()
}
});
The problem is that putting this code, all effects that use jQuery,
stop working, such as flash messages, calendar.js, tooltips, etc.
After running the application with this code, even removing this code,
still does not work.
I was lucky enough to have a copy of the recent application and I
could restore.
What could be the problem?
How could I fix it?