D
D
Dmitry Amelchenko2014-06-20 19:03:25
JavaScript
Dmitry Amelchenko, 2014-06-20 19:03:25

Why doesn't jQuery UI Datepicker open the first time?

in a RoR application (Rails 4.0.3), does the calendar only appear if the page is refreshed again? how to fix?
application.js //= require jquery.ui.datepicker
application.css.scss *= require jquery.ui.datepicker
posts.js

jQuery ->
$('#pticket_starts_at').datepicker
 dateFormat: 'yy-mm-dd'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2014-06-21
@i1677960

As I read in one more or less authoritative book:

4 rails are wonderful. The first thing to do is remove the gem 'turbolinks' line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question