dyve/django-bootstrap-toolkit — pull request #85 by jhillacre (2013-06-25 18:11:38+00:00)
Title: Updating init_datepicker.js to allow init of widgets on inline forms

While using BootstrapDateInput on a form used on an [StackedInline](https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.StackedInline) admin class, I noticed that the picker wouldn't show up on click for elements that were added after page load.

Instead of initializing all datepickers that exist on document ready, this change makes it so that a datepicker is initialized on focus or click for inputs that are not already initialized.