Closed ghost closed 10 years ago
I also have a JS error on the same line: 752 of bootstrap-datetimepicker.js It also happen when I click the Time button. Error is: TypeError: 'undefined' is not a function (evaluating 'expanded.collapse('hide')')
@MarkoHiel Hey you've got some funny indentation in your HTML
snippet. I'm not very familiar with Slim, but maybe that has something to do with it? Check out this JSFiddle and see if you can recreate the issue.
Ah i see. But that's nothing to do with it. The JS Fiddle is working for me by the way.
collapse
is defined in bootstrap.js
, so you need it in order to use the date time picker.
Add:
gem "therubyracer"
gem "twitter-bootstrap-rails"
in your Gemfile, run:
bundle install
And then add:
//= require twitter/bootstrap
in your application.js
I believe that this issue could be closed, bootstrap.js
is an important dependency anyway.
Excellent! Thanks!
On 28 May 2014 19:23, Minko Gechev notifications@github.com wrote:
collapse is defined in bootstrap.js, so you need it in order to use the date time picker.
Add:
gem "therubyracer"gem "twitter-bootstrap-rails"
in your Gemfile, run:
bundle install
And add
//= require twitter/bootstrap
in your application.js
— Reply to this email directly or view it on GitHubhttps://github.com/TrevorS/bootstrap3-datetimepicker-rails/issues/6#issuecomment-44383031 .
Thanks! I missed that!
You're welcome! I'm glad I helped.
Excellent work @mgechev, thanks!
Hey! I am getting a js error, when i click on the calender icon in order to select a time. CSS and JS is properly loaded. I am using Rails 4.1 and Ruby 2.1.1 and the latest JQuery.
This is what i have in my project:
Gemfile
admin.css.sass
admin.js.coffee
HTML(slim):
The error which is accoring is the following:
Any idea?
Thanks in advance.