asaglimbeni / django-datetime-widget

Bootstrap django-datetime-widget is a simple and clean widget for DateField, Timefiled and DateTimeField in Django framework. It is based on Bootstrap datetime picker, supports both Bootstrap 3 and Bootstrap 2
Other
219 stars 125 forks source link

Fix prev & next buttons on initial load #94

Open JaHicks opened 8 years ago

JaHicks commented 8 years ago

The previous and next buttons currently do not work when the widget is initially loaded. This is caused when the startView option comes through as a string and the switch case for enabling these buttons is skipped. This fix ensures the startView option is interpreted as an integer.