Sha256: 25fabdf790a7b316675118e7d98fce1bd2f4cd6b97077fd271a857a5ba57e7c1

Contents?: true

Size: 298 Bytes

Versions: 36

Compression:

Stored size: 298 Bytes

Contents

$(document).on "ready page:load", ->
  $("input[type*=date], input[name*=date], input[name$=_at]").map ->
    this.type = "text"

    if this.value.match("-")
      date = this.value.split("-")
      this.value = date[2] + "/" + date[1] + "/" + date[0]

    $(this).datepicker
      language: "fr"

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
dorsale-2.3.2 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.3.1 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.3.0 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.16 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.15 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.14 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.13 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.12 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.11 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.10 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.9 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.8 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.6 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.5 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.4 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.3 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.2 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.1 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.2.0 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-2.1.15 app/assets/javascripts/dorsale/datepicker.coffee