-### define 
+### define
 jquery : $
 bootstrap : bootstrap
 ###


  datepicker.on "changeDate", (event) ->
    currentDate = moment(event.date.valueOf())

  datepicker.datepicker("setValue", currentDate.toDate())
  datepicker.datepicker('update')

      # dismissAlert()
    )
    .fail (jqXHR, textStatus, error ) ->

      console.error("There was an error submitting the entry:", error)
      showAlert("Ups! Something went wrong.", "failure")
      # dismissAlert()
