app/assets/javascripts/datepicker.js.coffee
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
$(document).on 'click focus', 'input.date', ->
$(this).datepicker({
showOn: 'focus',
changeMonth: true,
dateFormat: 'yy-mm-dd'})
$(document).on 'click focus', 'input.datetime', ->
$(this).datetimepicker({
showOn: 'focus',
changeMonth: true,
dateFormat: 'yy-mm-dd'})
) jQuery