FinelySliced/leanModal.js — pull request #24 by gresakg (2012-11-18 20:20:37+00:00)
Title: Add focus to forms in modal

Small (2 lines) but important improvement. If you have a form in your modal, you can set the id of the element that will gain focus when modal will open.
You set the selector of the element to gain focus with a new option focusId.