~openerp-dev/openerp-web/7.0-opw-586613-msh

Viewing all changes in revision 3862.

  • Committer: Fabien Meghazi
  • Date: 2013-03-21 22:06:36 UTC
  • Revision ID: fme@openerp.com-20130321220636-1pja2ahsdstyl8kz
[FIX] Fix FormFields#focus()

The focus() of AbstractFormField should return false if field
is not focusable otherwise it breaks FormView's#autofocus()

Also added checks of existance of the element to focus.
Those errors makes it harder to find other bugs

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: