Nerian/bootstrap-datepicker-rails — pull request #38 by jsilvestri (2012-12-13 20:51:24+00:00)
Title: Fix bug in hide function preventing initializing the datepicker to a...

...different date

Also add .rvmrc to .gitignore so others can work on this project more easily.

I have tested this locally and it works properly for what I need. One other fork-like project off of yours (https://github.com/vitalets/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js) does something else instead in the hide function:

if (e && e.currentTarget.value)
this.setValue();

I wasn't sure if that code quite made sense, and it generally made sense to me that you shouldn't have to set the value again before hiding, which is why I removed the line of code.