Pylons/deform — pull request #128 by tilgovi (2012-10-03 07:50:31+00:00)
Title: Focus improvements

I made some improvements to how `focusFirstInput` works.

- avoid focusing hidden elements (e.g., happens with csrf_token fields if they are in the deform schema)
- allow a parent element to be passed to `focusFirstInput` to restrict the search for input fields
- leverage this second bit to make focus return to the correct form after an ajax submit when multiple forms are on the same page

Feedback welcome.