fatfreecrm/fat_free_crm — pull request #345 by h-lame (2014-10-17 12:23:17+00:00)
Title: Supply datepicker options in crm.flip_calendar

In datepicker.js.coffee we make sure that all datepicker inputs are invoked with the same options. However, the datepicker on the task form is not enabled by default and is brought into existence separately by crm.flip_calendar. This means it doesn't use the 'yy-mm-dd' format and so the wrong dates are set on the task (or completely incorrect dates blocking the creation / editting of the task entirely).

The solution is to use the same options for the datepicker call in crm.flip_calendar as we do in datepicker.js.coffee.

This fixes #328.