kristianmandrup / ui_datepicker-rails3

jQuery UI datepicker integration for Formtastic, Simple Form and Active Admin
MIT License
50 stars 15 forks source link

date_time_picker not working #3

Open modules opened 12 years ago

modules commented 12 years ago

Hello,

i have setup ui_datepicker-rails3 with simple_form. ui_date_picker is working fine, ui_date_time_picker opens only a calendar without time.

<%= f.input :start_at, :as => :ui_date_picker %>
<%= f.input :end_at, :as => :ui_date_time_picker %>

Can somebody help?

chlyons commented 12 years ago

Love the Gem! Figured out the issue here - make the change in your datepicker.js file from:

$('input.ui-datetime-picker').datepicker();

To:

$('input.ui-datetime-picker').datetimepicker();

@kristianmandrup - Could you please change this is the Read Me Configuration Instructions. :D

friendlyrent commented 12 years ago

Fixed the README ;) Thanks!