datetimepicker-rails icon indicating copy to clipboard operation
datetimepicker-rails copied to clipboard

Datetimepicker does not render when turbolinks is installed

Open skellatore opened this issue 8 years ago • 1 comments

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

skellatore avatar Jun 05 '16 05:06 skellatore

Tim,

Thank you, this worked for me.

Regards, James

jamgar avatar Feb 21 '17 14:02 jamgar