zpaulovics / datetimepicker-rails

A date and time picker for Twitter Bootstrap in Rails using Simple Form
MIT License
174 stars 80 forks source link

Datetimepicker does not render when turbolinks is installed #81

Open skellatore opened 8 years ago

skellatore commented 8 years ago

Hi Gents,

after a bit of troubleshooting I found that when using the turbolinks gem and this datetimepicker-rails gem, turbolinks seemed to override the $(document).on('read page:change', .... method. As a work-a-round you can use; $(document).on('turbolinks:load'... in the pickers.js file.

Maybe you can save someone else some trouble and put this up as a note on the instructions? :)

Best, Tim

jamgar commented 7 years ago

Tim,

Thank you, this worked for me.

Regards, James