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


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

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

    # clear existing styles
    $alert.removeClass("alert-success")
    $alert.removeClass("alert-danger")

    $alert.text(msg)

    if state == "success"
