jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
358 stars 87 forks source link

Datepair.js, bootstrap and Rails #66

Closed wasafiri closed 8 years ago

wasafiri commented 8 years ago

There is an incompatibility with the Datepair.js and the bootstrap.datepicker.

The bootstrap API now only offers a .datetimepicker() function which is cool, but Datepair does not work well with it. Also I tried using the older versions of the libraries which do work, but they are incompatible with the newer bootstrap.

jonthornton commented 8 years ago

Can you point me to the docs for that plugin? bootstrap-datepicker's docs don't mention a .datetimepicker() method.

wasafiri commented 8 years ago

In the minimum set up example: https://eonasdan.github.io/bootstrap-datetimepicker/

jonthornton commented 8 years ago

bootstrap-datetimepicker != bootstrap-datepicker. The projects have different maintainers and appear to be unrelated. Datepair.js is designed to work with the plugin found here: https://github.com/eternicode/bootstrap-datepicker