Sha256: 103424249951842f47caf9a4f02e54c4efda7b963ca7141b0b714f2bc94c33eb
Contents?: true
Size: 562 Bytes
Versions: 50
Compression:
Stored size: 562 Bytes
Contents
# Doc : http://bootstrap-datepicker.readthedocs.io/en/stable/index.html window.setupDatepickers = (scope = document) -> $(scope).find("input[type*=date], input[name*=date], input[name$=_at]").map -> return if this.type == "hidden" this.type = "text" # 2015-06-12 to 15/06/2015 if this.value.match("-") this.value = this.value.split("-").reverse().join("/") $(this).datepicker language: "fr" format: "dd/mm/yyyy" todayBtn: "linked" autoclose: true $(document).on "turbolinks:load", -> setupDatepickers()
Version data entries
50 entries across 50 versions & 1 rubygems