What is the purpose of passwordInput.focus(); ?
I'm running a site with a theme running jQuery 1.9 and passwordInput.focus(); seems to pull focus back to the password input field all the time, regardless of whether the password meets policy compliance or not and means you can't do anything else on the page. This behaviour does not happen in any Drupal supported version of jQuery as far as I can see.
I commented out the line (28) and nothing seemed to break and password_policy then works with jQuery 1.9. Is this focus line needed?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | password_policy-remove_focus-1998862-7455062.patch | 462 bytes | johnennew |
Comments
Comment #1
erikwebb commentedI personally don't think it needs to be there. It's probably leftover from an old implementation. Care to supply a patch to review?
Comment #2
johnennew commentedsure, patch attached.
Comment #3
erikwebb commentedCommitted and attributed. Thanks!
http://drupalcode.org/project/password_policy.git/commit/3302bb4