Sha256: a2f7b0db36eb2861da093c36de61bb1c5146bac560ff7557df8db2da052b7963

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

$(document).on "ready page:load", ->
  $("input[type*=date], input[name*=date]").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

5 entries across 5 versions & 1 rubygems

Version Path
dorsale-1.2.6 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-1.2.5 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-1.2.4 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-1.2.3 app/assets/javascripts/dorsale/datepicker.coffee
dorsale-1.2.2 app/assets/javascripts/dorsale/datepicker.coffee